Skip to content

Instantly share code, notes, and snippets.

View douglasjarquin's full-sized avatar

Douglas Jarquin douglasjarquin

View GitHub Profile
@douglasjarquin
douglasjarquin / rds-migrator.rb
Created July 11, 2011 02:33
Migrate a small database from one RDS instance to another
require 'fileutils'
start_time = Time.now
SOURCE_DATABASE = {
:name => '...',
:user => '...',
:password => '...',
:host => '...'
}
git remote add dropbox ~/Dropbox/Git/project.git
git clone ~/Dropbox/Git/project.git
git push dropbox master --set-upstream
git push dropbox master
git clone --bare . ~/Dropbox/Git/project.git
git remote add dropbox ~/Dropbox/Git/project.git
@douglasjarquin
douglasjarquin / homebrew-update.sh
Created June 14, 2011 17:58
Update outdated Homebrew packages
brew upgrade `brew outdated | awk {'print $1'} | xargs`
alias backup='s3sync -v -r --progress --exclude=".svn" --exclude=".DS_Store" --exclude="Library/Caches" --delete ~/ my_backup_bucket:/'
s3sync -v -r --progress --exclude=".svn" --exclude=".DS_Store" --exclude="Library/Caches" --delete ~/ my_backup_bucket:/
export AWS_ACCESS_KEY_ID="....."
export AWS_SECRET_ACCESS_KEY="....."