Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I create this script which let me add the gitk in the Programming Application menu in my gnome this way I don't need to open a shell and go to the repository base to view the rep tree
0
820
posted 12 years ago by ferro
Add this to your .profile or .bash_rc file, source the file, navigate to the directory and call "rm_whitespace"
Based on: http://snipplr.com/view/4468/batch-rename-files-in-directory/
1
1452
posted 12 years ago by licensetoil
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
For impl of 'simpleLog', in eclipse, the default instructions did not work for me , providing LEVEL_ALL logs until i added one additional prop not mentioned in the link
0
744
posted 12 years ago by rowntreerob
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
Put this before a "RewriteRule" to call the rule only if this request was not from a redirect.
0
605
posted 12 years ago by tribal
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0
1067
posted 12 years ago by luizlopes
Shows you the full contents of any file at any time in history
0
883
posted 12 years ago by therobot
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
896
posted 12 years ago by isholgueras
"-n" just shows you what will be deleted.
Replace it with "-f" to actually clean your repository
0
812
posted 12 years ago by limepix
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
0
983
posted 12 years ago by luizlopes
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
**Usage**
> newuser.bash [username]
**What it does**
- Generates a random password with `makepasswd`
- Encrypts it with `mkpasswd` for use with useradd
- Adds the user
- Adds a MySQL Database for user
- Adds a MySQL User for user
-...
1
1067
posted 12 years ago by jiewmeng
infinitive loop in bash, useful if you want to have a self-healing process
2
687
posted 12 years ago by thoaionline
Basically allows for a one click build through a repository driving PhoneGap Build project.
2
958
posted 12 years ago by tpryan
Bytes per second isn't granular enough to get a real idea of how your network is really being used.
0
642
posted 13 years ago by mattsn0w
following example code removes all ".svn" folders recursively
0
744
posted 13 years ago by sabanulutas
just a personal bash script I maintain to keep handy on fresh installs
0
737
posted 13 years ago by DanielFGray