Created
March 19, 2011 02:05
-
-
Save o-sam-o/877149 to your computer and use it in GitHub Desktop.
Cheatsheet for shell commands that i want to remember
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup dir so changes to a ruby version and gemset on entry | |
rvm --rvmrc --create <ruby>@<gemset> | |
# Backup a mysql database | |
mysqldump -u [username] -p [databasename] > [backupfile.sql] | |
# Stop mac from sleeping | |
pmset noidle | |
# Strip quotes around digits in VIM | |
:%s/'\(\d\+\)'/\1/g | |
# Local RSync | |
rsync -vur /mnt/photos/ /home/user/photos/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment