This file contains hidden or 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 config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" |
This file contains hidden or 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 config --global diff.tool bc3 | |
| git config --global difftool.bc3.path "c:/program files (x86)/beyond compare 3/bcomp.exe" |
This file contains hidden or 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
| { | |
| "auto_complete_commit_on_tab": true, | |
| "color_scheme": "Packages/Color Scheme - Default/GrandsonOfObsidian.tmTheme", | |
| "font_face": "Droid Sans Mono", | |
| "font_size": 13, | |
| "hot_exit": false, | |
| "remember_open_files": false, | |
| "shift_tab_unindent": true, | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true, |
This file contains hidden or 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 'net/http' | |
| require 'net/https' | |
| class FacebookJob < Struct.new(:id, :access_token, :message, :link, :picture, :name, :description, :caption, :icon) | |
| def perform | |
| uri = URI.parse('https://graph.facebook.com/me/feed') | |
| params = {'access_token' => access_token, 'message' => message, 'link' => link, 'picture' => picture, 'name' => name, 'description' => description, 'caption' => caption, 'icon' => icon } | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.use_ssl = true |
This file contains hidden or 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
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| GRAY="\[\033[0;37m\]" | |
| BLUE="\[\033[0;34m\]" |
NewerOlder