Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
When you put an image in a printable document, you don't want it to have black (or coloured) background. ImageMagick allows to replace colours even when the coloured regions are non-contiguous. Arbitrary colour values can be specified with `\#12345...
0
681
posted 15 years ago by deepsoul
Find the most recently modified file in a directory tree and output its name and modification time. Use index 8 or 10 instead of 9 for access and inode modification time, respectively (see perlfunc manual page - function stat).
This is great for...
0
797
posted 15 years ago by deepsoul
The first directory listed is the one to copy, the second is where it's copied to.
0
666
posted 15 years ago by beneberle
Using svnadmin hotcopy doesn’t require any server downtime, completes in minutes, and replicates server configuration and hook scripts.
1
831
posted 15 years ago by Mithun
bash 3-line shell script for visualization of java class dependencies with graphviz. Please see my blog post for details and leave comments there.
0
726
posted 15 years ago by benjamin
bash 3-line shell script for visualization of c++ class dependencies with graphviz. Please see my blog post for details and leave comments there.
0
749
posted 15 years ago by benjamin
this is a way get control on Apple's network interfaces by manually setting options in Terminal
1
790
posted 15 years ago by blackthorne
Bash
lists all network protocol connections filtering out column 6 and sorting the unique entries by count
0
814
posted 15 years ago by tobewan
Bash
all network connections filtering out anything in column 6 that matches '/tcp/' and sorts the unique entries by count
0
1029
posted 15 years ago by tobewan
Setup default ignores, aliases, colors, completion and bash prompt in Git
These are to be run from Terminal.
1
769
posted 15 years ago by alvarezrilla
Useful when logged in the server via ssh.
In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd
0
954
posted 15 years ago by alvarezrilla
r : recursive
v: verbose
--progress : shows progress with percentage
0
771
posted 15 years ago by godstroke
Befindet sich die aktuell angezeigte Seite dabei unter den aufgelisteten Seiten, dann erhält dieser Listenpunkt die Klasse class="current_page_item":
0
867
posted 15 years ago by gabbo