Skip to content

Instantly share code, notes, and snippets.

View nonrational's full-sized avatar
🌱

Alan Norton nonrational

🌱
View GitHub Profile
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
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

@IanVaughan
IanVaughan / uninstall_gems.sh
Created June 9, 2012 20:37
Uninstall all rbenv gems
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}
@javiervidal
javiervidal / gist:1433880
Created December 5, 2011 15:05
To access url helpers (url_for, etc) from Rails console (Rails 3)
include Rails.application.routes.url_helpers
default_url_options[:host] = "localhost"
@jgornick
jgornick / countries.json
Created January 5, 2011 18:33
SQL: ISO 3166-1 Country Codes
{
"countries" : [
{
"code": "ZW",
"name": "Zimbabwe"
},
{
"code": "ZM",
"name": "Zambia"
},