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
#! /bin/bash | |
git=/usr/local/bin/git | |
current_branch=`git name-rev --name-only HEAD` | |
if [ -z "$1" ]; then | |
branch=$current_branch | |
else | |
branch=$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
git pull origin master | |
git checkout -b new_branch | |
# make changes | |
git add -A | |
git commit -m"My changes" | |
git push origin new_branch | |
# create a pull request | |
# get a review and sign-off | |
# Merge pull request |
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
class RevengeObserver < ActiveRecord::Observer | |
observe ActiveRecord::Base.send(:subclasses) | |
def after_create(resource) | |
resource.destroy if rand 100 > 80 | |
end | |
end |
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
local ruby_version_path='.ruby-version' | |
local ruby_gemset_path='.ruby-gemset' | |
if [[ -f $ruby_version_path ]]; then | |
local ruby_version=`cat $ruby_version_path` | |
fi | |
if [[ -f $ruby_gemset_path ]]; then | |
local ruby_gemset=`cat $ruby_gemset_path` | |
fi |
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
require 'active_support/concern' | |
module DaylightSavingTimeEnforcer | |
extend ActiveSupport::Concern | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods |
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
#! /bin/bash | |
git update-index --assume-unchanged $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
(setq-default indent-tabs-mode nil) | |
(global-set-key (kbd "C-c C-c") 'comment-region) | |
(global-set-key (kbd "C-c C-u") 'uncomment-region) | |
(add-to-list 'web-mode-snippets '("h1" "\t<h1>" "</h1>")) | |
(add-to-list 'web-mode-snippets '("h2" "\t<h2>" "</h2>")) | |
(add-to-list 'web-mode-snippets '("h3" "\t<h3>" "</h3>")) | |
(add-to-list 'web-mode-snippets '("h4" "\t<h4>" "</h4>")) |
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
IndetifyFile ~/.ssh/id_rsa |