Welcome To Snipplr


Everyone's Recent Bash Snippets



Converts whitespace that spans multiple lines into a single newline, needs improvement
0 1161 posted 18 years ago by plexus
for .bashrc, a function that cd's to a directory and lists the contents it takes ls arguments and a directory. for example, cl goes to home dir and lists contents. cl -l goes to ~/ and long lists contents. and cl -lrt public_html shows the contents o...
0 1055 posted 18 years ago by zingo
updates (svn up) a working copy and displays the changes
4 1151 posted 18 years ago by zingo
0 898 posted 18 years ago by gtcaz
- lowQ/ is the output directory - pass quality level from 1 to 100
2 1423 posted 18 years ago by abhiomkar
Usage: save the script to ~/scripts/my.bashrc and then source it in .bashrc.
0 1328 posted 18 years ago by thebugslayer
Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2 1387 posted 18 years ago by jonhenshaw
Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
2 1803 posted 18 years ago by jonhenshaw
Mount Samba share from osx terminal, might not show up in Finder
0 1821 posted 18 years ago by vanne
This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension
0 1500 posted 18 years ago by wolfie
0 1141 posted 18 years ago by benpjohnson
2 1123 posted 18 years ago by gtcaz
1 873 posted 18 years ago by tgunr
0 989 posted 18 years ago by tgunr
Enter this at the commandline.
0 1212 posted 18 years ago by Roshambo
List all packages that are installed in your system
1 1058 posted 18 years ago by vanne
Change / to the root directory you wish to search in. Change -7 to +7 for files changed more than a week ago.
1 1606 posted 18 years ago by micmath
0 1514 posted 18 years ago by netjackal
0 888 posted 18 years ago by jonathanbp
0 937 posted 18 years ago by spider
1 845 posted 18 years ago by olive
0 900 posted 18 years ago by olive
There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
0 1153 posted 18 years ago by plexus
SSh with 3 levels of debugging this useful if you can't login and need to see what is going on.
1 1215 posted 18 years ago by vanne
My additions to the textdrive .profile
0 878 posted 18 years ago by ryansobol