Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



0 597 posted 14 years ago by pauljmartinez
Will prompt for user password.
0 551 posted 14 years ago by alvarezrilla
2 575 posted 14 years ago by mattchurchy
THERE IS A BUG AFTER COUNTING 100
0 524 posted 15 years ago by zxeem
0 586 posted 15 years ago by smoover
1 767 posted 15 years ago by arcturus
These are two separate code snippets. One is for a crontab, the other to be run by cron. Together they create a new folder every day and fills it with 240 jpeg images (10 per hour) of whatever it is that you're doing. The next step for me is t...
1 534 posted 15 years ago by ThomasGHenry
Lists folders in a directory by size
1 742 posted 15 years ago by ping_ch
obviously change url. you'll get (better formatted) something like... curl -o /dev/null -w %{time_total}\\n http://www.google.com % Total % Received % Xferd Average Speed Time Time Time Current D...
0 436 posted 15 years ago by nategood
you have to collect the filenames from 'find' in an input file then open the input in this script
0 671 posted 15 years ago by rowntreerob
* Resized images are generated into TARGET_DIR. * Change the resolution (800x800 in my example) and quality (80) as you want. * The command keeps the image's proportion. 1600x1200 will be converted into 800x600, 1200x1600 into 600x800. _Notice_:...
2 853 posted 15 years ago by Dorgendubal
0 520 posted 15 years ago by java2025
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 857 posted 15 years ago by Dorgendubal
Useful to quickly identify processes listening to ports (to eventually kill them).
0 665 posted 15 years ago by Dorgendubal
Useful to convert all matching files from one encoding to another. Some examples:
1 931 posted 15 years ago by Dorgendubal
* _HOST_: remote host * _PORT_: ssh port (default 22) * _PATH_: remote path to synchronize
0 531 posted 15 years ago by Dorgendubal
1 719 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 855 posted 15 years ago by ping_ch
0 607 posted 15 years ago by ping_ch
0 637 posted 15 years ago by benpjohnson
Some nice base aliases, still need to go through them
2 766 posted 15 years ago by narkisr
How to run a KVM VM with no X (server environment, originally seen at http://blog.bodhizazen.net/?p=40).
0 566 posted 15 years ago by narkisr
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 639 posted 15 years ago by inkdeep
0 592 posted 15 years ago by zachwood
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 605 posted 15 years ago by narkisr