Skip to content

Instantly share code, notes, and snippets.

@o-sam-o
Created March 19, 2011 02:05
Show Gist options
  • Save o-sam-o/877149 to your computer and use it in GitHub Desktop.
Save o-sam-o/877149 to your computer and use it in GitHub Desktop.
Cheatsheet for shell commands that i want to remember
# 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