View gist:e20df16e0ee0c7c040ba
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitconfig | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p |
View gist:9480871
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install devise | |
# rails generate devise user | |
# rails g scaffold task name:string description:text | |
class ApplicationController < ActionController::Base | |
before_filter :authenticate_user! | |
around_filter :set_current_user_for_thread | |
protect_from_forgery |