save_and_open_page
have_button(locator)| # bash_profile | |
| mv ~/.bash_profile ~/Dropbox/.bash_profile | |
| ln -s ~/Dropbox/.bash_profile ~/.bash_profile | |
| # Sublime 2 Preferences | |
| mkdir -p ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/ | |
| cd ~/Library/Application\ Support/Sublime\ Text\ 2/ | |
| mv ./Installed\ Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Installed\ Packages | |
| mv ./Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Packages | |
| mv ./Pristine\ Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Pristine\ Packages |
| " RSpec | |
| map <Leader>r :call RunTest()<CR> | |
| map <Leader>R :call RunNearestTest()<CR> | |
| function! RunTest() | |
| call RunTestFile(FindTestFile()) | |
| endfunction | |
| function! RunNearestTest() | |
| call RunTestFile(FindTestFile() . ':' . line('.')) |
| #!/usr/bin/env ruby | |
| # put in /etc/munin/plugins and restart munin-node | |
| # by Dan Manges, http://www.dcmanges.com/blog/rails-application-visualization-with-munin | |
| # NOTE: you might need to add munin to allow passwordless sudo for passenger-memory-stats | |
| def output_config | |
| puts <<-END | |
| graph_category App | |
| graph_title Passenger memory stats | |
| graph_vlabel count |
| #!/usr/bin/env ruby | |
| def output_config | |
| puts <<-END | |
| graph_category App | |
| graph_title passenger status | |
| graph_vlabel count | |
| sessions.label sessions | |
| max.label max processes |