Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 32 33 34 35 36 ... 41
0 1748 posted 18 years ago by sudarkoff
uses nslookup to find the IP of the domain
1 2099 posted 18 years ago by rwczippy
menu will only quit when 'q' is pressed
2 2477 posted 18 years ago by rwczippy
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 2378 posted 18 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 2603 posted 18 years ago by jonhenshaw
Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.
0 1909 posted 18 years ago by zingo
This command lists all the differences that were made between two revisions in SVN.
2 2271 posted 18 years ago by narkisr
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1 1837 posted 18 years ago by narkisr
0 1631 posted 18 years ago by Juanje
1. Allows encryption between client and server 2. Bypasses filtered port, if any on the standard port for the given service.
1 2040 posted 18 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 1789 posted 18 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 2481 posted 18 years ago by trey
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/
9 3155 posted 18 years ago by chrisaiv
0 1937 posted 18 years ago by zingo
2 2273 posted 18 years ago by Juanje
This example shows how to compile the hello.c file out of the fuse source tar.
0 1612 posted 18 years ago by narkisr
1 1695 posted 18 years ago by Juanje
https://www.chrisjmendez.com/2008/06/11/show-hidden-folders-and-files-in-os-x-leopard/
2 2121 posted 18 years ago by chrisaiv
Startup eclipse code. sudo touch /usr/bin/eclipse sudo chmod 755 /usr/bin/eclipse sudoedit /usr/bin/eclipse
0 1437 posted 18 years ago by jlbfalcao
Cowthink is an ASCII script for Linux to show text in a bubble over a cows head Picture: http://tinyurl.com/5mupb7 Download: http://www.nog.net/~tony/warez/cowsay.shtml
1 1523 posted 18 years ago by Sn0opy
This rendition works for most of my tasks, but the inform may need to be changed to suit base64 encoded files.
0 1991 posted 18 years ago by breakerjump
Example code would remove all files/folders recursively starting from the current folder named file_name
0 1943 posted 18 years ago by jturmel
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
2 2558 posted 18 years ago by Juanje
Sorry, the comentaries are in spanish. I will translate them some day. The examples results are indicated with: # -> [result] Usually is the "echo" result
0 1550 posted 18 years ago by Juanje
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 2138 posted 18 years ago by zingo
1 ... 32 33 34 35 36 ... 41