Skip to content

Instantly share code, notes, and snippets.

View elianderson's full-sized avatar

Eli Anderson elianderson

View GitHub Profile
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@elianderson
elianderson / activeadmin-cancan.rb
Created December 6, 2012 15:29
Deep integration of CanCan into ActiveAdmin
# blog post:
# Before using this initializer, you must set up Cancan. First, add the gem to your Gemfile:
#
# gem 'cancan'
#
# Next, generate and edit an Ability class:
#
# rails generate cancan:ability
#
@elianderson
elianderson / gist:1705900
Created January 30, 2012 18:45 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@elianderson
elianderson / gist:1705899
Created January 30, 2012 18:45 — forked from joshellington/gist:1705896
HTML5 Boilerplate Downloader Alias
alias html5='wget --no-check-certificate http://github.com/h5bp/html5-boilerplate/zipball/v2.0stripped ./; mv ./v2.0stripped ./boilerplate.zip; unzip boilerplate.zip; mv h5bp-html5-boilerplate-*/* .; rm -rf ./boilerplate.zip; rm -rf ./h5bp-html5-*;'