Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged Bash
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
With this script a new user gets created and gets his own VirtualHost and database. The username is used for building the domain, so the username "test" leads to the domain test.local.
The password for the MySQL account used for creating the datab...
1
808
posted 10 years ago by derbenni
This snippet will produce an alpha-numeric 16 character password
1
601
posted 10 years ago by mralexjuarez
This is a simple wrapper to bc to perform basic calculator duties. with up to 4 decimal place precision. its just one of those things you might find useful. Then again all the os's out there have a gui calc easily ready too.
0
595
posted 10 years ago by brownrl
This script opens an SSL tunnel between a source host and a target host.
1
676
posted 10 years ago by miceno
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0
2001
posted 10 years ago by chema_ar
If you have a script that must be run as the root user, put this at the top:
1
850
posted 10 years ago by deanhouseholder
In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties. Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.
0
700
posted 10 years ago by deanhouseholder
Shell script written in bash which displays a menu giving the you ability to add, edit, modify, and delete users.
1
2978
posted 11 years ago by dego89
Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern <?php>
0
821
posted 11 years ago by tinytiger
How to automatically login with SSH. Also known as “key-based authorization with SSH†or simply “publickey authorizationâ€.
0
638
posted 11 years ago by tinytiger
Find and replace contents of files ending in .php with nothing. then append contents of template.php to all files in directory
0
629
posted 11 years ago by zlincoln
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0
620
posted 11 years ago by symsec
Set the last parameter to the number of cores.
End with 'killall perl'
0
535
posted 11 years ago by beaknit
Tests whether the script has been invoked with the correct number of parameters.
0
497
posted 11 years ago by triffel
iconv -l to show all available encodes, replace xxx with you file ext
0
632
posted 11 years ago by rabc
Boot Minecraft on an Ubuntu 64-bit instance with 2GB of RAM
0
575
posted 11 years ago by stevedecoded
If you only want to show directories, replace "-type f" with "-type d".
0
677
posted 11 years ago by tinytiger
A fast way to delete many files without getting an 'Argument list too long' error as wold be the case with 'rm'.
0
581
posted 11 years ago by tinytiger