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
HISTSIZE=1000 | |
SAVEHIST=1000 | |
export EDITOR=vim | |
export PATH="${PATH}:${HOME}/bin" | |
# Path to your oh-my-zsh configuration. | |
export ZSH=$HOME/zsh/oh-my-zsh | |
export ams_dir=$HOME/apps/ams | |
export JDOTS=$HOME/.jdots | |
if [[ -s $HOME/.ams/scripts/ams ]] ; then source $HOME/.ams/scripts/ams ; 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
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
echo '○' | |
} | |
PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) | |
$(prompt_char) ' | |
RPROMPT="..." | |
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
# Final Countdown | |
# config.middleware.use Roll | |
class Roll | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
request = Rack::Request.new(env) | |
ip = request.ip |
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
rvm gemset use global | |
gem install rake wirble --no-rdoc --no-ri | |
echo "require 'wirble'; Wirble.init; Wirble.colorize" >> ~/.irbrc |
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
# by bryan helmkamp with slight modification by chris wanstrath | |
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow | |
module GitCommands | |
extend self | |
def diff_staging | |
`git fetch` | |
puts `git diff origin/production origin/staging` | |
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
13:43 Window : #2 | |
13:43 Size : 139x31 | |
13:43 Level : NONE | |
13:43 Server : Freenode | |
13:43 Bounds : Name Server tag | |
13:43 : #ams_dev freenode sticky | |
13:43 Items : Name Server tag | |
13:43 CHANNEL: #ams_dev Freenode |
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
@requirement = criterion.requirement | |
@applicant_requirements = @requirement.applicant_requirements.of(@applicant).all | |
gpas_by_requirement = render_to_string :partial => "applicants/gpas_by_requirement", :locals => {:applicant_requirements => @applicant_requirements} | |
render :json => {...., :gpas_by_requirement => gpas_by_requirement} |
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
# bash completion for Ruby Version Manager (RVM) | |
__rvm_comp() | |
{ | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
COMPREPLY=($(compgen -W "$1" -- "$cur")) | |
return 0 | |
} | |
__rvm_subcommand() |
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
From ad700a5c42519db6d1e751598a6b74d7111ee19b Mon Sep 17 00:00:00 2001 | |
From: Joseph Hsu <[email protected]> | |
Date: Sat, 10 Apr 2010 15:11:27 -0400 | |
Subject: [PATCH] fix commands and add default & system to rubies completion | |
--- | |
scripts/completion | 9 +++++---- | |
1 files changed, 5 insertions(+), 4 deletions(-) | |
diff --git a/scripts/completion b/scripts/completion |
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
rvm gemset use global; gem install wirble | |
echo "require 'wirble'; Wirble.init; Wirble.colorize" > ~/.irbrc |