Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 4 5 6 7 8 ... 41
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 619 posted 12 years ago by ferro
List files in varying detail
0 495 posted 12 years ago by klovera
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 1228 posted 12 years ago by licensetoil
trims spaces from the source code and left align the code column
0 610 posted 12 years ago by ferro
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 517 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 437 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 555 posted 12 years ago by rowntreerob
A bash command to empty a database table.
1 738 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 564 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 448 posted 12 years ago by tribal
Find a directory withing a compressed file and remove it.
0 645 posted 12 years ago by bionic
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0 842 posted 12 years ago by luizlopes
Shows you the full contents of any file at any time in history
0 685 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 688 posted 12 years ago by isholgueras
"-n" just shows you what will be deleted. Replace it with "-f" to actually clean your repository
0 615 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 786 posted 12 years ago by luizlopes
View ports on linux
0 534 posted 12 years ago by Glycerine
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 415 posted 12 years ago by alexsancho
Restore a deleted file within the git repo
1 623 posted 12 years ago by Glycerine
**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 854 posted 12 years ago by jiewmeng
infinitive loop in bash, useful if you want to have a self-healing process
2 546 posted 12 years ago by thoaionline
Basically allows for a one click build through a repository driving PhoneGap Build project.
2 759 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 483 posted 12 years ago by mattsn0w
following example code removes all ".svn" folders recursively
0 562 posted 12 years ago by sabanulutas
1 651 posted 12 years ago by blackthorne
0 553 posted 12 years ago by klovera
just a personal bash script I maintain to keep handy on fresh installs
0 545 posted 12 years ago by DanielFGray
1 ... 4 5 6 7 8 ... 41