Skip to content

Instantly share code, notes, and snippets.

@tyrotinal
tyrotinal / gist:5530351
Created May 7, 2013 05:01
rake: db create
rake db:create
@tyrotinal
tyrotinal / gist:5530349
Created May 7, 2013 05:01
rake: assets precompile
rake assets:precompile
@tyrotinal
tyrotinal / gist:5530348
Created May 7, 2013 05:00
rails: procfile sample
web: bundle exec rails s -p 8080
@tyrotinal
tyrotinal / gist:5530345
Created May 7, 2013 05:00
rails: migrate in production
RAILS_ENV=production rake db:migrate
@tyrotinal
tyrotinal / gist:5530344
Created May 7, 2013 05:00
rails: production environment
ENV['RAILS_ENV'] ||= 'production'
@tyrotinal
tyrotinal / gist:5530342
Created May 7, 2013 04:59
rails: generate controller
rails g controller home index
@tyrotinal
tyrotinal / gist:5530341
Created May 7, 2013 04:59
rails: scaffolding
rails generate scaffold User name:string email:string
rake db:migrate
@tyrotinal
tyrotinal / gist:5530339
Created May 7, 2013 04:58
css: Eric reset
/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@tyrotinal
tyrotinal / gist:5530337
Created May 7, 2013 04:57
git: get folder tree structure
git ls-tree --name-only -r master
@tyrotinal
tyrotinal / gist:5530333
Created May 7, 2013 04:56
git: remove files after they have been committed
git rm --cached /\*.lof *.lol *.lomycapequ *.aux *.lot *.out *.toc *.bib