Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 33 34 35 36 37 ... 41
Startup eclipse code. sudo touch /usr/bin/eclipse sudo chmod 755 /usr/bin/eclipse sudoedit /usr/bin/eclipse
0 412 posted 15 years ago by jlbfalcao
Cowthink is an ASCII script for Linux to show text in a bubble over a cows head Picture: http://tinyurl.com/5mupb7 Download: http://www.nog.net/~tony/warez/cowsay.shtml
1 484 posted 15 years ago by Sn0opy
This rendition works for most of my tasks, but the inform may need to be changed to suit base64 encoded files.
0 636 posted 15 years ago by breakerjump
Example code would remove all files/folders recursively starting from the current folder named file_name
0 648 posted 15 years ago by jturmel
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
2 752 posted 15 years ago by Juanje
Sorry, the comentaries are in spanish. I will translate them some day. The examples results are indicated with: # -> [result] Usually is the "echo" result
0 440 posted 15 years ago by Juanje
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 840 posted 15 years ago by zingo
A bash script which installs rubygems under ubuntu hardy.
0 449 posted 15 years ago by narkisr
Good for when you did a checkout when you meant to do an export or what-have-you.
2 697 posted 15 years ago by trey
This is useful if you have some optional functionality being done which is quite slow on nfs. For example, I have a script that adds scm (svn/git/etc) info to my prompt, but I wouldn't want that when I'm in a repository on an nfs mount.
0 683 posted 15 years ago by kergoth
This is very useful with dinamic IP connections. You can connect from the host with the dinamic IP, leave the tunnel open to other machine with ssh access and fixed IP and then connect to this machine on specific port (22000 in the example) to connec...
2 664 posted 15 years ago by Juanje
This script goes to the directory you pass as a parameter and change de version of all the packages found in there. It was used for an amount of packages which were building from the sources but for an lower version of Ubuntu (actually for Guadaline...
0 437 posted 15 years ago by Juanje
This is a simple script for testing changes in a live iso created with squashfs filesystem for the compression. It will take the iso path as a parameter and it will open it up with unionfs to let you modify its content (into a chroot enviroment) and...
0 479 posted 15 years ago by Juanje
Little script which call tinyurl.com via 'curl' for generate a sort url of the url you pass.
0 990 posted 15 years ago by Juanje
0 501 posted 15 years ago by Juanje
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
0 534 posted 15 years ago by cczona
Useful if you need to run the same command for lots and lots of different parameters
0 872 posted 15 years ago by wolfie
Useful if you have a shell script running lots of the same command and want to know how many of them have been done
0 684 posted 15 years ago by wolfie
Run this command to add an /etc/init.d/ startup script to start at os bootup.
0 613 posted 15 years ago by funkmyer
1 570 posted 15 years ago by funkmyer
Not sure why I'm posting this madness. Bash can be good for some things though. I think part of the reason I used bash was because I was calling alot of external commands.
0 635 posted 15 years ago by mandric
Changing default settings The defaults for the ssh-related commands can be altered for each account in a configuration file ~/.ssh/config (there is also a system-wide file, usually /etc/ssh/ssh_config). Each entry starts with a Host keyword. You c...
0 570 posted 16 years ago by cczona
1 642 posted 16 years ago by lakedenman
2 898 posted 16 years ago by therobot
1 ... 33 34 35 36 37 ... 41