Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 17 18 19 20 21 ... 41
If you accidentally exit while doing an interactive rebase, you can clean it with this command.
0 1361 posted 15 years ago by stayce
the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.
0 1626 posted 15 years ago by iloveitaly
Using a sorted list remove all the lines in file2 from file1
0 1033 posted 15 years ago by benpjohnson
Sample BASH .profile for use in cygwin for windows.
0 1088 posted 15 years ago by gripnrip
0 1269 posted 15 years ago by alvarezrilla
tested only on mac osx terminal
1 1500 posted 15 years ago by mcarneiro
Command: svn log -rHEAD:443 | sed -n '/nalmeida/,/-----$/ p'
0 1298 posted 15 years ago by nalmeida
If this command seems to run forever, it's because there may be parts of the site that generate an infinite series of different URLs. You can solve this in many ways, the simplest being to use the -l option to specify how many links “away” from t...
1 1340 posted 15 years ago by alemani
0 1172 posted 15 years ago by alemani
This script calculates the network speed up/down
0 1198 posted 15 years ago by alemani
0 1187 posted 15 years ago by draq
Con este código: Creas un archivo txt donde se almacenaran los nombres de archivos encontrados (temporal.txt). En caso de existir la unidad J. la elimina sin pedir confirmación (/Y). Crea la conexión J: al servidor requerido, con usuario y passwor...
0 1475 posted 15 years ago by lsaez
grep through all history from within a Subversion working directory, like: $ svngrep SecItemCopyMatching *
0 1486 posted 15 years ago by zingo
Found it on wiki
0 1184 posted 15 years ago by TEHEK
0 1234 posted 15 years ago by stayce
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only. find . -type d -exec chmod 755 {} \; Similarly, the following will chmod all files only (and ignore the directories): find . -...
1 1524 posted 15 years ago by MikeyLikesIt
An easy was to tunnel remote Couchdb instance into a local machine using ssh tunneling, by using the 5893 local port we enable the local instance to run (replication is only a click away).
0 1729 posted 15 years ago by narkisr
Usage: `imgsize [file(s)]`
0 1269 posted 15 years ago by nijgnet
Usage: `tidyup [file(s)]`
0 1012 posted 15 years ago by nijgnet
0 1241 posted 15 years ago by beneberle
Tunneling vnc over ssh
0 1450 posted 15 years ago by narkisr
1 ... 17 18 19 20 21 ... 41