Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Copy a directory (and subdirectories) without .svn files.
0
1906
posted 17 years ago by sanjivarunsahayamhotmailcom
Searches for some text in a list of files. Displays the results with the filename where the snippet was found.
1
2091
posted 17 years ago by sanjivarunsahayamhotmailcom
Simply open up terminal and run these commands one at a time. You may need sudo or root access.
0
1871
posted 17 years ago by chrisaiv
Query a nameserver to easily find out all there is to know about a domain name; Nameservers, MX-servers, cnames, subdomains etc.
1
2112
posted 17 years ago by torkil
Simple function which makes it easy to add files to svn in bash (add this to your .bashrc file).
1
2084
posted 17 years ago by narkisr
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2
2245
posted 17 years ago by berkes
`lookupd` doens't exist in Leopard, instead `dscacheutil` should be used.
2
2603
posted 17 years ago by rastersize
Here's how to copy 2 directories and strip the .svn and .cvs nonsense, basically an export function, but locally
1
2012
posted 17 years ago by vanne
This will start at the specified URL and recursively download pages up to 3 links away from the original page, but only pages which are in the directory of the URL you specified (emacstips/) or one of its subdirectories.
wget will also rewrite the...
10
2812
posted 17 years ago by rwczippy
Pre 1.6 git has some annoying whitespace checking in it's pre-commit hook. Rather than turn it off I decided to have a go at an automated method to fix the issue.
Running the first line lists the files that have problems. The second just adds a se...
0
2973
posted 18 years ago by benpjohnson
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0
1647
posted 18 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
1675
posted 18 years ago by iTony