Skip to content

Instantly share code, notes, and snippets.

View jonlunsford's full-sized avatar
⌨️
Hacking

Jon Lunsford jonlunsford

⌨️
Hacking
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@mattfawcett
mattfawcett / gist:72340
Created March 1, 2009 14:22
Sync your development database and file upload folders with whatever your staging/production server currently has
# Task has the following dependencies
# net/ssh gem [gem install net-ssh]
# net/sftp gem [gem install net-sftp]
# rsync command line utility
# yamb_db rails plugin [ruby script/plugin install git://github.com/adamwiggins/yaml_db.git]
desc "This task will make your development environment download and import a fresh copy of your staging database and also sync any folders such as image uploads so you can quickly replicate your staging/production server content locally"
task :sync_with_staging => :environment do
@remote_host = 'yourremoteserver.com'
@remote_user = 'yoursshuser'