Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



1 2 3 4 5 6 7 ... 15
0 2036 posted 15 years ago by ragnarokkrr
0 1605 posted 15 years ago by ragnarokkrr
0 1725 posted 15 years ago by ragnarokkrr
1 1965 posted 15 years ago by mecha
Empties the keyboard buffer. Useful to discard keyboard input during a command execution inside a bash script. Try this script without this line: read -t 0.1 -N 255 and enter any garbage ([ENTER] and all) during these 2 seconds window... Th...
0 1834 posted 15 years ago by niglesias
0 1495 posted 15 years ago by ragnarokkrr
0 1532 posted 15 years ago by ragnarokkrr
0 2053 posted 15 years ago by ragnarokkrr
0 1691 posted 15 years ago by ragnarokkrr
0 1490 posted 15 years ago by ragnarokkrr
0 1603 posted 15 years ago by ragnarokkrr
0 1653 posted 15 years ago by greeneggs614
Start / Stop Crontab as a service
0 1746 posted 15 years ago by greeneggs614
This is for debian but can be adapted with little trickery to any Linux distro. This enables changing the root of a shell so that the directories displayed are not too long. Useful for dir-verbose frameworks like symfony or when managing a huge we...
0 1677 posted 15 years ago by ChloeD
Creates a daily backup and deletes any backup older than 60 days. Replace: *DB_USER *DB_PASSWORD *DB_NAME */path/to/backup with your actual database name, credentials and path to where you want your backup to live. Last note: you don't nec...
1 2271 posted 15 years ago by nikefido
0 1858 posted 15 years ago by jeremydouglass
0 1733 posted 15 years ago by jeremydouglass
0 1737 posted 15 years ago by jeremydouglass
Fairly self-explanator, but: Expects a directory at <code>/var/www/skeleton</code> with the correct permissions. This is then copied and renamed. Also expects a file named <code>/etc/apache2/sites-available/skeleton</code> which is used to copy th...
0 1821 posted 15 years ago by craig0990
0 1739 posted 15 years ago by Risse
This nautilus script was written for Wuala to duplicate the "Copy Public Link" feature from Dropbox.
0 2183 posted 15 years ago by flexgrip
A more simpler method to check root user
0 1623 posted 15 years ago by vikiyou
Impletement die function for bash
0 1923 posted 15 years ago by vikiyou
Check the shell run script if is bash.
0 1905 posted 15 years ago by vikiyou
Check if the user run this script is root.
0 1773 posted 15 years ago by vikiyou
1 2 3 4 5 6 7 ... 15