- Detailed Cheatsheet: http://danielkummer.github.io/git-flow-cheatsheet/
- Command-line Arguments Reference: https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
- git-flow Home: https://github.com/nvie/gitflow
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
set nocompatible | |
command! W :w | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle' | |
Plugin 'tpope/vim-sensible.git' |
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
Plugin 'jayferd/eco.vim.git' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'mattn/gist-vim' | |
Plugin 'juvenn/mustache.vim.git' | |
Plugin 'scrooloose/nerdtree.git' | |
Plugin 'vim-scripts/ruby-matchit.git' |
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
asdfasdf |
If you want to get master back into a stable state, say from a tag you know is deployed on production, you can do this:
git checkout master
git reset --hard <tag name>
git push --force origin master
http://stackoverflow.com/questions/6872223/git-revert-master-branch-to-a-tag
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
# To help me importing some CSV | |
# Using vim (to avoid eval hell) | |
# can we 'easily' move from something like | |
legacy_venue_id,venue_name,legacy_region_id,venue_address,venue_oot,venue_db,venue_notes | |
# To something like | |
legacy_venue_id = row[0] | |
venue_name = row[1] |
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
gem 'resque', '>= 1.10.0' | |
gem 'heroku' # You will need the heroku gem for this too. |
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
# initializers/devise.rb | |
config.omniauth :facebook, [APP_ID], [APP_SECRET] | |
config.omniauth :facebook_app1, [APP_ID], [APP_SECRET], :iframe => true, :scope => 'publish_stream,offline_access,email' | |
config.omniauth :facebook_app2, [APP_ID], [APP_SECRET], :iframe => true, :scope => 'publish_stream,offline_access,email' |
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
def share_with_facebook_url(opts) | |
# Generates an url that will 'share with Facebook', and can includes title, url, summary, images without need of OG data. | |
# | |
# URL generate will be like | |
# http://www.facebook.com/sharer.php?s=100&p[title]=We also do cookies&p[url]=http://www.wealsodocookies.com&p[images][0]=http://www.wealsodocookies.com/images/logo.jpg&p[summary]=Super developer company | |
# | |
# For this you'll need to pass the options as | |
# | |
# { :url => "http://www.wealsodocookies.com", |
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
background do | |
set_omniauth() | |
click_link_or_button 'Sign up with Facebook' | |
end |
NewerOlder