View gist:5058463
# On OSX Mountain Lion, 'brew install librets' installs librets into the system ruby folder,
# not the current rvm ruby as it used to on older versions of OSX. The only work-around I've
# found is to take the librets.rb and librets_native.bundle files and copy them into the proper
# rvm ruby's folders.
# Best way - make desired version of ruby the system ruby.
rvm use system
which ruby
# return the current system version of ruby
ls -l /usr/bin/ruby
View gist:4092207
*** Now much simpler. Just follow additional features at https://sublime.wbond.net/packages/RubyTest and turn on check_for_rvm ***
Based on http://rubenlaguna.com/wp/2012/02/01/sublime-text-2-rvm-rspec but with some critical changes.
1. Create $HOME/bin/sublime_rspec.rb:
---------------------------------------
#!/usr/bin/env ruby
file = File.expand_path(ARGV[0] || (STDERR.puts('you must specify a ruby file'); exit(-1)))
dir = File.dirname file
View gist:4067131
Nutheory ~/Sites/homefolio $ brew install librets -vd
/usr/local/bin/brew: loading /usr/local/Library/Formula/librets.rb
Warning: Your Xcode (4.5.1) is outdated
Please install Xcode 4.5.2.
/usr/local/bin/brew: loading /usr/local/Library/Formula/boost.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/curl.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/expat.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/swig.rb
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
View postfromgooglereader.rb
#!/usr/local/bin/ruby
# Get from your personal Google Reader public share.
# Post to your WordPress blog.
# Written by Dan Woolley on 9/8/07 for http://tzetzefly.com
# Command line: ruby postfromgooglereader.rb <post_type> <days_back>
# where <post_type> is 'draft', 'live', or 'test' (default is draft)
# and <days_back> is number of days back to get from Google Reader (default is 1)
View postfromdelicious.rb
#!/usr/local/bin/ruby
# Get from your personal del.icio.us share.
# Post to your WordPress blog.
# Written by Dan Woolley on 9/8/07 for http://tzetzefly.com
# Command line: ruby postfromdelicious.rb <post_type> <days_back>
# where <post_type> is 'draft', 'live', or 'test' (default is draft)
# and <days_back> is number of days back to get from del.icio.us (default is 1)
View gist:51163
<![CDATA[
var dwellicious_data = {
"address": "123 Main St.",
"city": "Boca Raton",
"state": "FL",
"zip": "33432",
"zip4": "",
"area": "East Boca Raton",
"subdivision": "Spanish River Estates",
"county": "Palm Beach",
View gist:39343
<a href="javascript:var w = window.open('http://dwellicious.com/addbookmark?popup=true&desc=***fill_in_desc***&uri=***fill_in_page_url***&src=***fill_in_src***','addtodwellicious','width=550,height=550,location=0,menubar=0,toolbar=0');w.focus();">
<img border="0" src="http://dwellicious.com/images/dwellicious_chiclet_label.png">
</a>