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 530 posted 16 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 619 posted 16 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 792 posted 16 years ago by breakerjump
Example code would remove all files/folders recursively starting from the current folder named file_name
0 803 posted 16 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 936 posted 16 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 593 posted 16 years ago by Juanje
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 1020 posted 16 years ago by zingo
A bash script which installs rubygems under ubuntu hardy.
0 590 posted 16 years ago by narkisr
Good for when you did a checkout when you meant to do an export or what-have-you.
2 868 posted 16 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 852 posted 16 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 822 posted 16 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 598 posted 16 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 629 posted 16 years ago by Juanje
Little script which call tinyurl.com via 'curl' for generate a sort url of the url you pass.
0 1214 posted 16 years ago by Juanje
0 641 posted 16 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 674 posted 16 years ago by cczona
Useful if you need to run the same command for lots and lots of different parameters
0 1084 posted 16 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 856 posted 16 years ago by wolfie
Run this command to add an /etc/init.d/ startup script to start at os bootup.
0 762 posted 16 years ago by funkmyer
1 717 posted 16 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 799 posted 16 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 705 posted 16 years ago by cczona
1 792 posted 16 years ago by lakedenman
2 1080 posted 16 years ago by therobot
1 ... 33 34 35 36 37 ... 41