Welcome To Snipplr


Everyone's Recent Bash Snippets



Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2 2584 posted 19 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 3170 posted 19 years ago by jonhenshaw
Mount Samba share from osx terminal, might not show up in Finder
0 2647 posted 19 years ago by vanne
This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension
0 3348 posted 19 years ago by wolfie
0 1981 posted 19 years ago by benpjohnson
2 1981 posted 19 years ago by gtcaz
1 1591 posted 19 years ago by tgunr
0 1735 posted 19 years ago by tgunr
Enter this at the commandline.
0 2088 posted 19 years ago by Roshambo
List all packages that are installed in your system
1 1870 posted 19 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 2597 posted 19 years ago by micmath
0 2661 posted 19 years ago by netjackal
0 1640 posted 19 years ago by jonathanbp
0 1745 posted 19 years ago by spider
1 1570 posted 19 years ago by olive
0 1665 posted 19 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 2165 posted 19 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 2215 posted 19 years ago by vanne
My additions to the textdrive .profile
0 1688 posted 19 years ago by ryansobol
Remove all those annoying thumbnail files that Windows users created while browsing your network drive. This command traverses all directories and deletes all "Thumbs.db" files as it finds them.
1 3242 posted 19 years ago by Roshambo
1 1735 posted 19 years ago by micmath
1 1787 posted 19 years ago by micmath
Move all mails with a certain subject (in this case starting with the word "Undelivered" into a backup dir. It is by no means a mail filter, I needed it to clean out the maildirectory after a HDD crash wich caused over 1000000 (one million) local bo...
0 1741 posted 19 years ago by berkes