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 842 posted 12 years ago by ferro
List files in varying detail
0 695 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 1482 posted 12 years ago by licensetoil
trims spaces from the source code and left align the code column
0 805 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 704 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 639 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 764 posted 12 years ago by rowntreerob
A bash command to empty a database table.
1 967 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 778 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 622 posted 12 years ago by tribal
Find a directory withing a compressed file and remove it.
0 843 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 1088 posted 12 years ago by luizlopes
Shows you the full contents of any file at any time in history
0 902 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 923 posted 12 years ago by isholgueras
"-n" just shows you what will be deleted. Replace it with "-f" to actually clean your repository
0 841 posted 13 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 1005 posted 13 years ago by luizlopes
View ports on linux
0 726 posted 13 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 571 posted 13 years ago by alexsancho
Restore a deleted file within the git repo
1 819 posted 13 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 1094 posted 13 years ago by jiewmeng
infinitive loop in bash, useful if you want to have a self-healing process
2 707 posted 13 years ago by thoaionline
Basically allows for a one click build through a repository driving PhoneGap Build project.
2 974 posted 13 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 668 posted 13 years ago by mattsn0w
following example code removes all ".svn" folders recursively
0 763 posted 13 years ago by sabanulutas
1 897 posted 13 years ago by blackthorne
0 781 posted 13 years ago by klovera
just a personal bash script I maintain to keep handy on fresh installs
0 762 posted 13 years ago by DanielFGray
1 ... 4 5 6 7 8 ... 41