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
| bash -c ' | |
| if [ ! -f /usr/local/bin/chef-client ]; then | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev | |
| cd /usr/src | |
| wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.bz2 | |
| tar xjf ruby-1.9.2-p180.tar.bz2 | |
| cd ruby-1.9.2-p180 | |
| ./configure |
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
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~/Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
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
| # Run me with: | |
| # | |
| # $ watchr specs.watchr | |
| # -------------------------------------------------- | |
| # Convenience Methods | |
| # -------------------------------------------------- | |
| def all_spec_files | |
| Dir['spec/**/*_spec.rb'] | |
| 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
| Ctrl-L gives a hashrocket with spaces | |
| Shift-Ctrl-[ alternate between {} and do/end blocks | |
| Shit-Cmd-D open the require file in another window | |
| Ctrl-shift-V validates syntax of ruby file | |
| Ctrl-shift-E executes the line | |
| Ctrl-shift-; alternate between string and symbol | |
| Shift-Option-Cmd-Down show possible destinations | |
| Ctrl-Shift-H create partial from selection | |
| Ctrl-P gives params[:id] |
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 __git_dirty { | |
| git diff --quiet HEAD &>/dev/null | |
| [ $? == 1 ] && echo "!" | |
| } | |
| function __git_branch { | |
| __git_ps1 "(%s)" | |
| } | |
| function __my_rvm_ruby_version { |
NewerOlder