Welcome To Snipplr


Everyone's Recent Snippets Tagged Bash



How to redirect stderr to stdout in bash
0 746 posted 12 years ago by tinytiger
A fast way to delete many files without getting an 'Argument list too long' error as wold be the case with 'rm'.
0 780 posted 12 years ago by tinytiger
This script will parse the auth.log and return results depending on the argument entered. To run the script enter one of the following. ./auth success or ./auth fail
1 1192 posted 12 years ago by _reydin_
Fetches resources from a remote host with specified crawl depth.
0 533 posted 12 years ago by paullombard
Credit goes to [shyul](http://forum.mamp.info/memberlist.php?mode=viewprofile&u=61837"shyul") and the original forum post here: [original_post](http://forum.mamp.info/viewtopic.php?t=14115"original_post") You need to modify the following file " ...\...
0 1281 posted 12 years ago by manolis
download directory to localhost home folder new-dir-name
0 790 posted 12 years ago by zackn9ne
zip a folder from linux command line
0 752 posted 12 years ago by artaserse
A crude script to query the GitHub API for a given Organisation, and backup its repositories and associated members forks.
0 1148 posted 12 years ago by slinky
Will find all __TIF__ files and create new __JPG__ files of the same file name. - 97% quality - Resize _down only_ to `1024x1280`
0 654 posted 12 years ago by jasonseney
Perform command on all hosts found in **~/.ssh/known_hosts** Works better when [**auth.sh**](http://snipplr.com/view/46699/authsh/ "auth.sh") has been run on each host first.
0 856 posted 12 years ago by cruelfate
Check the version of CentOS
0 793 posted 12 years ago by klovera
Creare un disco in RAM
0 612 posted 12 years ago by kajinka13
List out all your Zombie processes
0 663 posted 12 years ago by kajinka13
Shows the load of the cpu graphically in ssh (note you must install htop first)
0 773 posted 12 years ago by klovera
When you run this over a text.txt with some text you will get the word distribution on output_ngram.txt as follows: 30 m 29 por 29 aplicaci 27 modelo 27 datos 24 con 21 este 21 esta 20 En 18 posible 18 palabras 1...
0 678 posted 12 years ago by clopez
For any text document this snippet generates an output file that looks like this: 30 m 29 por 29 aplicaci 27 modelo 27 datos 24 con 21 este 21 esta
0 612 posted 12 years ago by clopez
A bash command to empty a database table.
1 937 posted 12 years ago by ModServ
How to run a tar archive backup excluding a directory. For example, running a website root directory backup excluding the 'backups' directory.
1 760 posted 12 years ago by klovera
This script get (in the correct tree folder structure) all files changed between 2 revisions. NOTICE: This scripts does not advice about files deleted
0 895 posted 12 years ago by isholgueras
Helper to cheek if a given domain is available for registration. If tld is omitted the script uses a predefined tld array to check multiple domains. To use copy the code to a standalone file, call it whatever you wants and make it executable (+x)
0 549 posted 12 years ago by alexsancho
infinitive loop in bash, useful if you want to have a self-healing process
2 687 posted 12 years ago by thoaionline
0 887 posted 13 years ago by svleeuwen
1 865 posted 13 years ago by blackthorne
0 747 posted 13 years ago by klovera
just a personal bash script I maintain to keep handy on fresh installs
0 737 posted 13 years ago by DanielFGray
Here's a quick one-off trick for sed editing conf files on remote hosts. I will post the core sed command first, showing the crazy quoting, then a for loop demonstrating how one might tackle multiple hosts. Took me a few tries to get the quoting so...
0 577 posted 13 years ago by bubnoff
Kudos to http://snipplr.com/view/26670/
0 788 posted 13 years ago by klovera