Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
3972
posted 16 years ago by nalmeida
Uso quando quero pesquisar o histórico de conversas e não lembro qual comunicador estava usando
0
1554
posted 16 years ago by gpupo
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
2082
posted 16 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
1825
posted 16 years ago by edeustace
> <code>__Usage:__<br>
> ./svn-export.sh [repository/subdir] [rev1] [rev2]</code>
0
1878
posted 16 years ago by tcmacdonald
Mounting a windows share in Ubuntu (The UI version doesn't seem to offer a mount point).
0
1907
posted 16 years ago by narkisr
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
1998
posted 16 years ago by berkes
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
2020
posted 16 years ago by berkes
To convert files, especially prior to mysql insert. use file filename to find out encoding
1
2156
posted 16 years ago by bionic
This is how to patch changes from svn into git (should work with other vcs as well).
0
1768
posted 16 years ago by narkisr
Squashing
---------
WARNING: "git rebase" changes history. Be careful. Google it.
git rebase --interactive HEAD~10
(then change all but the first "pick" to "squash")
squash the last 10 commits into one big commit
0
2686
posted 16 years ago by jturmel