Welcome To Snipplr


Everyone's Recent Snippets Tagged Bash



1 2 3 4 5 6 7 ... 17
0 705 posted 13 years ago by ragnarokkrr
0 660 posted 13 years ago by ragnarokkrr
0 738 posted 13 years ago by ragnarokkrr
0 679 posted 13 years ago by ragnarokkrr
0 706 posted 13 years ago by ragnarokkrr
Just run at the prompt cygwin bash $ cmd.exe /c start .
0 1336 posted 13 years ago by peterlubczynski
1 851 posted 13 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 806 posted 13 years ago by niglesias
0 601 posted 13 years ago by ragnarokkrr
0 623 posted 13 years ago by ragnarokkrr
0 998 posted 13 years ago by ragnarokkrr
0 710 posted 13 years ago by ragnarokkrr
0 588 posted 13 years ago by ragnarokkrr
0 650 posted 13 years ago by ragnarokkrr
0 717 posted 13 years ago by greeneggs614
Start / Stop Crontab as a service
0 765 posted 13 years ago by greeneggs614
0 662 posted 13 years ago by crackiron
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 630 posted 13 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 919 posted 13 years ago by nikefido
0 701 posted 13 years ago by jeremydouglass
0 673 posted 13 years ago by jeremydouglass
0 667 posted 13 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 726 posted 13 years ago by craig0990
1 2 3 4 5 6 7 ... 17