Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 19 20 21 22 23 ... 41
0 1074 posted 15 years ago by ascarion
1 1550 posted 15 years ago by wnasich
If you have these files: old-file.php file-old.php file-old-file.php license.txt and you apply the snippet then you'll have these files: new-file.php file-new.php file-new-file.php license.txt ;-)
0 1169 posted 15 years ago by vigoncas
don't forget to take my email out :)
1 1482 posted 15 years ago by adkatrit
make sure the en1 value is the interface you are using
1 1433 posted 15 years ago by adkatrit
replace your "zipcode" with your zipcode
0 1255 posted 15 years ago by adkatrit
another bash quickie!
1 1358 posted 15 years ago by adkatrit
send every possible combination to stdout
0 1014 posted 15 years ago by adkatrit
1 1125 posted 15 years ago by nmobix
0 1083 posted 15 years ago by kmorey
for help, type: ./compc -help [command]
0 1006 posted 15 years ago by nalmeida
To config Terminal do move (left and right) word-by-word: - Esc + b (left) - Esc + f (right) To configure it to Alt + left and right: - Open Terminal preferences (command + ,); - At Keyboard tab, select "control cursor left (or right)" and...
0 3215 posted 15 years ago by nalmeida
Uso quando quero pesquisar o histórico de conversas e não lembro qual comunicador estava usando
0 1043 posted 15 years ago by gpupo
here's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I * got exceptionally bored and rewrote most of it, the patch is attached. It runs...
0 1520 posted 15 years ago by nkm
Lowercase .JPG extension
0 1224 posted 15 years ago by vigoncas
Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres. There are probably better ways, maybe even a GNUtool that I missed?
0 1437 posted 15 years ago by berkes
When tailing a log file, its sometimes handy to only show parts of it that you are interested in, this simple pipe does the job.
2 1193 posted 15 years ago by edeustace
> <code>__Usage:__<br> > ./svn-export.sh [repository/subdir] [rev1] [rev2]</code>
0 1275 posted 15 years ago by tcmacdonald
Mounting a windows share in Ubuntu (The UI version doesn't seem to offer a mount point).
0 1298 posted 15 years ago by narkisr
0 1133 posted 15 years ago by marcelodornelas
Count number of files in a directory
1 1273 posted 15 years ago by marcelodornelas
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives. You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh serve...
0 1441 posted 15 years ago by berkes
This is just a note for myself, not my own code.
0 738 posted 15 years ago by jgillman
This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files. * KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this t...
0 1341 posted 15 years ago by berkes
1 ... 19 20 21 22 23 ... 41