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
693
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
813
posted 15 years ago by deepsoul
The first directory listed is the one to copy, the second is where it's copied to.
0
680
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
848
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
737
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
763
posted 15 years ago by benjamin
this is a way get control on Apple's network interfaces by manually setting options in Terminal
1
805
posted 15 years ago by blackthorne
Bash
lists all network protocol connections filtering out column 6 and sorting the unique entries by count
0
827
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
1051
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
789
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
972
posted 15 years ago by alvarezrilla
r : recursive
v: verbose
--progress : shows progress with percentage
0
785
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
887
posted 15 years ago by gabbo