Skip to content

Instantly share code, notes, and snippets.

View ryanooi's full-sized avatar
🔥

Ryan Ooi ryanooi

🔥
  • Singapore
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ryanooi on github.
  • I am ryanooi (https://keybase.io/ryanooi) on keybase.
  • I have a public key ASCcVoc2rC1rM1Kch0htDl0hbDIEw_Ra9hPcNhDvnK77Ngo

To claim this, I am signing this object:

@ryanooi
ryanooi / tmux.md
Created April 10, 2016 13:26 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

% rails s -b 0.0.0.0
=> Booting Thin
=> Rails 4.2.3 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/var/lib/gems/2.2.0/gems/railties-4.2.3/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x0000000205d348> (NoMethodError)
from /home/ryanooi/code/sample_app/config/environments/development.rb:23:in `block in <top (required)>'
from /var/lib/gems/2.2.0/gems/railties-4.2.3/lib/rails/railtie.rb:210:in `instance_eval'
from /var/lib/gems/2.2.0/gems/railties-4.2.3/lib/rails/railtie.rb:210:in `configure'