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
class MyObject | |
def block_depth=(value) | |
Thread.current[:block_depth] = value | |
end | |
def block_depth | |
Thread.current[:block_depth] || 0 | |
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
namespace :ubuntu do | |
desc "Setup Environment" | |
task :setup_env, :roles => :app do | |
update_apt_get | |
install_dev_tools | |
install_git | |
install_subversion | |
install_sqlite3 | |
# Install and setup RVM instead of old Rails stack | |
#install_rails_stack |
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
Last login: Tue Nov 1 04:20:56 on console | |
steves-macbook:~ steveschwartz$ cd ~/workspace/ | |
steves-macbook:workspace steveschwartz$ soloist | |
running chef: sudo bash -c 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin chef-solo -j /var/folders/f9/f99vsO5cHRCsJ+7Fb+UNhE+++TI/-Tmp-/soloist20111101-253-1kys0lq-0 -c /var/folders/f9/f99vsO5cHRCsJ+7Fb+UNhE+++TI/-Tmp-/soloist20111101-253-1r2g8qc-0 -l info' | |
Password: | |
[Tue, 01 Nov 2011 05:02:33 -0400] INFO: *** Chef 0.10.4 *** | |
[Tue, 01 Nov 2011 05:02:37 -0400] INFO: Setting the run_list to ["pivotal_workstation::bash_profile-arch_flags", "pivotal_workstation::meta_osx_base", "pivotal_workstation::meta_osx_development", "pivotal_workstation::meta_ruby_development", "pivotal_workstation::mongodb", "pivotal_workstation::pg_admin", "pivotal_workstation::solr", "pivotal_workstation::ssl_certificate"] from JSON | |
[Tue, 01 Nov 2011 05:02:37 -0400] INFO: Run List is [recipe[pivotal_workstation::bash_profile-arch_flags], recipe[pivotal_workstation::meta_osx_base], re |
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
cookbook_paths: | |
- /Users/steveschwartz/workspace | |
recipes: | |
- pivotal_workstation::bash_profile-arch_flags # ONLY USE IF YOU ARE ON SNOW LEOPARD | |
- pivotal_workstation::meta_osx_base | |
- pivotal_workstation::meta_osx_development | |
- pivotal_workstation::meta_ruby_development | |
- pivotal_workstation::mongodb | |
- pivotal_workstation::pg_admin | |
- pivotal_workstation::solr |
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
alias gco="git checkout" | |
alias gst="git status" | |
alias gcm="git commit -m" | |
alias gca="git commit --amend" | |
alias gpr="git pull --rebase" | |
alias gpl="git pull" | |
alias gpu="git push" | |
alias gri="git rebase -i" | |
alias gre="git rebase" | |
alias gad="git add" |
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
alias be="bundle exec" | |
alias bi="bundle install" | |
alias bu="bundle update" |
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
alias rs="rails s" | |
alias rc="rails c" | |
alias ber="bundle exec rspec" |
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
color jellybeans+ | |
let NERDTreeDirArrows = 1 | |
let NERDTreeMouseMode = 1 | |
" <Ctrl-l> redraws the screen and removes any search highlighting. | |
nnoremap <silent> <C-l> :nohl<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
skip_vim_plugin "nerdtree" | |
vim_plugin_task "nerdtree-scrooloose", "git://github.com/scrooloose/nerdtree.git" |
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
# Installing ruby-debug19 with ruby-1.9.3 | |
gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/$(rvm tools identifier)/" |