Skip to content

Instantly share code, notes, and snippets.

@tyrotinal
tyrotinal / gist:5530276
Created May 7, 2013 04:34
html: boilerplate
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<!-- the "no-js" class is for Modernizr. -->
<head id="flitti" data-template-set="html5-reset">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@tyrotinal
tyrotinal / gist:5530326
Created May 7, 2013 04:54
git: alias commands
[alias]
s = status
co = checkout
b = branch
cm = commit -m
a = add --all
p = push origin
pu = pull origin
l = log --oneline
@tyrotinal
tyrotinal / gist:5530331
Created May 7, 2013 04:55
git: save credentials linux
git config credential.helper store
@tyrotinal
tyrotinal / gist:5530332
Created May 7, 2013 04:56
git: push up everything
git push -u origin --all
@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
@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: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:5530341
Created May 7, 2013 04:59
rails: scaffolding
rails generate scaffold User name:string email:string
rake db:migrate
@tyrotinal
tyrotinal / gist:5530342
Created May 7, 2013 04:59
rails: generate controller
rails g controller home index
@tyrotinal
tyrotinal / gist:5530344
Created May 7, 2013 05:00
rails: production environment
ENV['RAILS_ENV'] ||= 'production'