Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0
1064
posted 17 years ago by Juanje
To remove the annoying beeping of linux (so far tested in ubuntu and slackware)
the module pcspkr needs to be removed. this code would help to remove it.
0
1080
posted 17 years ago by iTony
Assumes logs are in /var/log/sshd/* and makes a few text format assumptions that probably make this specific to OpenSSH.
Simple, but more than you can see from a quick less.
3
1683
posted 17 years ago by scarfboy
Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
0
1737
posted 17 years ago by jonhenshaw
Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.
0
1245
posted 17 years ago by zingo
This command lists all the differences that were made between two revisions in SVN.
2
1555
posted 17 years ago by narkisr
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1
1187
posted 17 years ago by narkisr
1. Allows encryption between client and server
2. Bypasses filtered port, if any on the standard port for the given service.
1
1339
posted 17 years ago by iblis
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0
1189
posted 17 years ago by iblis
Do this from inside a Git repository, and it will do a 'git push' every time you do a 'git commit'.
This defeats a bit of the purpose of having a distributed SCM, but it's good for certain situations.
0
1665
posted 17 years ago by trey
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/
9
2329
posted 17 years ago by chrisaiv
This example shows how to compile the hello.c file out of the fuse source tar.
0
1054
posted 17 years ago by narkisr
https://www.chrisjmendez.com/2008/06/11/show-hidden-folders-and-files-in-os-x-leopard/
2
1434
posted 17 years ago by chrisaiv
Startup eclipse code.
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse
0
890
posted 17 years ago by jlbfalcao