Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 29 30 31 32 33 ... 41
Useful to remotely assist another person. 1. Connect to his computer using ssh 2. Execute first command listed below 3. The other person must open a terminal and execute the second command 4. Both are connected to the same terminal "screen"
1 1036 posted 15 years ago by Dorgendubal
Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.
0 1002 posted 15 years ago by Dorgendubal
Useful to quickly backup a folder by synchronizing it to another partition/disk.
0 655 posted 15 years ago by Dorgendubal
Useful to quickly identify processes listening to ports (to eventually kill them).
0 780 posted 15 years ago by Dorgendubal
Useful to convert all matching files from one encoding to another. Some examples:
1 1094 posted 15 years ago by Dorgendubal
* _HOST_: remote host * _PORT_: ssh port (default 22) * _PATH_: remote path to synchronize
0 657 posted 15 years ago by Dorgendubal
1 864 posted 15 years ago by hokasu
1. Save under .gnome2/nautilus-scripts/ 2. Right click some video file 3. Select Scripts->toFlv Works with multiple files.
1 1021 posted 15 years ago by ping_ch
A small script that sets up a new VirtualHost with Apache and adds an entry for the site to your hosts file. You need to adjust the paths to your needs. Must be run as root.
0 737 posted 15 years ago by ping_ch
0 783 posted 15 years ago by benpjohnson
-s 86x60 Defines the dimension of the thumbnail -ss 4 Generate a thumbnail from position 00:00:04 (4 seconds)
0 695 posted 15 years ago by smoover
Here's a simple one liner you can use to syntax check all php files in your working directory.
0 685 posted 15 years ago by endorfin
For expression engine, I placed with with the main set of .htaccess rules in the root
1 713 posted 15 years ago by joeymarchy
Open Terminal and enter this command.
1 1123 posted 15 years ago by jonhenshaw
Some nice base aliases, still need to go through them
2 917 posted 15 years ago by narkisr
0 528 posted 15 years ago by teddyzetterlund
How to run a KVM VM with no X (server environment, originally seen at http://blog.bodhizazen.net/?p=40).
0 723 posted 15 years ago by narkisr
simple way to join avi files on the command line (need to have mplayer installed)
0 759 posted 15 years ago by inkdeep
Clear files in /tmp directory that are older than three days - terminal/cron this is a very simple example - could also remove by last access time, etc.
0 773 posted 15 years ago by inkdeep
Writes 20 blocks of 1024 bytes to "filename" (equals a filesize of 20KB)
0 725 posted 15 years ago by dertimbo
This example shows how to clean up git's reflogs entries in order save space (see http://www.newartisans.com/blog/2008/04/diving-into-git.html).
0 2020 posted 15 years ago by narkisr
Bash shell scripts to control wallpaper backgrounds when switching between Ubuntu workspaces. (Other distributions can use it too). Take the below 2 scripts to make 2 separate files. Use gconf-editor to attach keybindings to run_command_1 and run...
0 825 posted 15 years ago by webonomic
This snippet shows how to restore HEAD after using Git's reset method (see http://gitready.com/2009/01/17/restoring-lost-commits.html?disqus_reply=5271828#comment-5271828).
0 744 posted 15 years ago by narkisr
0 657 posted 15 years ago by paulbooker
1 559 posted 15 years ago by endorfin
0 575 posted 15 years ago by endorfin
1 ... 29 30 31 32 33 ... 41