Welcome To Snipplr


Everyone's Recent Snippets Tagged Bash



transparently download from google-drive with command line
1 2185 posted 12 years ago by cinco
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 2132 posted 12 years ago by derbenni
This snippet will produce an alpha-numeric 16 character password
1 1709 posted 13 years ago by mralexjuarez
mount vmware share folder in linux guest
0 1706 posted 13 years ago by tzvio
Create a bash alias for a SSH command, e.g. sshToWork
1 1946 posted 13 years ago by adamokruhlicaeu
Import/export gunzipped compressed mysql database
0 3900 posted 13 years ago by tzvio
This is a simple script to go into your downloads directory ( mac ). Move everything to a .YYYY-MM-DD folder. Thus you Downloads directory gets cleaned up and anything that was there has been placed into a hidden folder for finding later. My Downl...
1 1894 posted 13 years ago by brownrl
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 1779 posted 13 years ago by brownrl
This script opens an SSL tunnel between a source host and a target host.
1 1992 posted 13 years ago by miceno
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0 4062 posted 13 years ago by chema_ar
If you have a script that must be run as the root user, put this at the top:
1 2232 posted 13 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 2115 posted 13 years ago by deanhouseholder
Create this in: ~/.bash_aliases.
0 1542 posted 13 years ago by lddurbin
see source
0 2802 posted 13 years ago by bitsculptor
Shell script written in bash which displays a menu giving the you ability to add, edit, modify, and delete users.
1 4819 posted 13 years ago by dego89
0 1192 posted 13 years ago by inhji
Find and replace
0 2041 posted 13 years ago by inreflection7
customized version of Sexy Bash Prompt
1 2410 posted 13 years ago by oxnard
Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern <?php>
0 3106 posted 13 years ago by tinytiger
How to automatically login with SSH. Also known as “key-based authorization with SSH” or simply “publickey authorization”.
0 1726 posted 13 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 1834 posted 13 years ago by zlincoln
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0 2778 posted 13 years ago by symsec
Creating a static copy of a dynamic website
0 2541 posted 13 years ago by alexaivars
Set the last parameter to the number of cores. End with 'killall perl'
0 1537 posted 13 years ago by beaknit
Tests whether the script has been invoked with the correct number of parameters.
0 1734 posted 13 years ago by triffel
iconv -l to show all available encodes, replace xxx with you file ext
0 1805 posted 13 years ago by rabc
Boot Minecraft on an Ubuntu 64-bit instance with 2GB of RAM
0 1783 posted 13 years ago by stevedecoded
WGET the SALT keys from Wordpress' API
0 1406 posted 14 years ago by paullombard
If you only want to show directories, replace "-type f" with "-type d".
0 2039 posted 14 years ago by tinytiger