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 'rubygems' | |
require 'rest-client' | |
require 'json' | |
# | |
# get all users in a program | |
# | |
client_id = 1069416700 | |
client_api_key = 'b26420242ff0a48b192ddc4fa3e4ac96' |
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
# tiny success: http://bit.ly/RhpepU | |
# osx specific, mpg123 or the like for linux | |
nmap HH :silent ! afplay /Users/nat/.vim/audio/succ_horns01.mp3 1>&-2>&-&<CR><C-l> |
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 'open-uri' | |
open("http://icanhazip.com/").read.strip |
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
setopt No_X_Trace; | |
setopt No_Verbose; | |
if ! type redisplay 2>/dev/null 1>/dev/null; then | |
declare -x PS1 | |
declare -x PS2; | |
declare -x PS3; | |
declare -x PS4; | |
setopt Prompt_Percent |
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
defaults write com.apple.dock no-glass -boolean YES; killall Dock |
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
Spec::Matchers.define :be_displaying_alert do | |
match do |actual| | |
class_name = begin | |
actual.driver.browser.switch_to.alert.class | |
rescue => exception | |
exception.class | |
end | |
class_name == Selenium::WebDriver::Alert | |
end |
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
.======. | |
| INRI | | |
| | | |
| | | |
.========' '========. | |
| _ xxxx _ | | |
| /_;-.__ / _\ _.-;_\ | | |
| `-._`'`_/'`.-' | | |
'========.`\ /`========' |
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
$LOCAL is set to the name of a temporary file containing the contents of the file on the current branch | |
$REMOTE set to the name of a temporary file containing the contents of the file to be merged | |
$BASE set to the name of a temporary file containing the common base for the merge. |
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
" vimrc to allow for blasting off reggaeton horns while coding | |
nmap HH :silent execute "!afplay $HOME/.vim/audio/air_horn5.mp3 &>/dev/null & redraw!"<CR> |
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 pre-receive hook for rejecting ruby code with debugger statements | |
#!/usr/bin/env ruby | |
def msg(message) | |
%{ | |
############################################################# | |
#{message} | |
############################################################# | |
} |