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 clone git://github.com/gitster/git | |
$ cd git/contrib/credential/osxkeychain | |
$ make | |
$ sudo cp git-credential-osxkeychain /usr/local/bin/git-credential-osxkeychain | |
$ sudo chmod 755 /usr/local/bin/git-credential-osxkeychain | |
$ sudo git config --global credential.helper osxkeychain |
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
Show hidden characters
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
// The number of spaces a tab is considered equal to | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": false | |
} |
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
PS1="\W $ " | |
alias ll='ls -l' | |
alias ..="cd .." | |
alias la="ls -la" | |
export CLICOLOR=1 | |
export LSCOLORS=ExGxcxdxCxegedabagacad | |
alias s="'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -w" |
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 'socket' | |
def my_first_private_ipv4 | |
Socket.ip_address_list.detect{|intf| intf.ipv4_private?} | |
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
$ rails s -e production |
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 generate_qr_image( url ) | |
raw "http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=#{url}&choe=UTF-8" | |
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
git status | grep deleted: | awk '{print $3}' | xargs git rm |
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
$ brew update | |
$ brew install git-flow | |
$ cd myapp | |
$ git init | |
$ git init flow | |
No branches exist yet. Base branches must be created now. | |
Branch name for production releases: [master] | |
Branch name for "next release" development: [develop] | |
How to name your supporting branch prefixes? |
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
1. Install Xcode 4.5.1 from AppStore. | |
1. Install Command Line Tools via Xcode preferences. |
NewerOlder