Skip to content

Instantly share code, notes, and snippets.

View vinbarnes's full-sized avatar

Kevin R. Barnes vinbarnes

View GitHub Profile
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:253:in `resolve'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:344:in `resolve_requirement'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:343:in `catch'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:343:in `resolve_requirement'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:295:in `resolve'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:294:in `reverse_each'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:294:in `resolve'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@optimis/gems/bundler-1.0.2/lib/bundler/resolver.rb:344:in `resolve_requirement'
from /Users/barnekr/.rvm/gems/ree-1.8.7-2010.01@
@vinbarnes
vinbarnes / baltimore_hipster_guide.mdown
Created May 15, 2011 19:09 — forked from pjb3/baltimore_hipster_guide.mdown
Hipster's Guide to Baltimore by @bmuller

Food

  • Little Italy has a number of great places (I think Amicci's has the best happy hour) and is accessible by the circulator's Orange Line.
  • Best pizza/risotto is Joe Squared on North Ave (purple line accessible).
  • Best Mexican is La Guadalupana on 500 South Wolfe Street (Orange/Green route will get you there). You will need to know some basic Spanish to order there, but the food is amazing.
  • Best odd assortment of random food is Lexington Market, the longest running market in the world(according to Wikipedia). It's accessible by heading north on the light rail and then walking West and would be good for lunch one day.
  • Best fancy food is Woodberry Kitchen, which is light rail accessible.
  • Best late night food is Never on Sunday on N Charles across the street from Helmand, which is open until 3:30am.
  • Best sushi is an easy pick - Kiku (1017 Light Street). It's a literal Mom and Pop operation with an amazing chirashi.
##################
#!/bin/sh
#
####################################
# iTunes Command Line Control v1.0
# written by David Schlosnagle
# created 2001.11.08
####################################
showHelp () {
@vinbarnes
vinbarnes / gist:1067563
Created July 6, 2011 15:42
Cauliflower "rice"
1. Cut up and put the cauliflower through the food processor. I've tried both the regular blade and the disc slicing blade. The slicing blade works best (for me) for consistency sake. Otherwise it turns into a mush and begins to approach a puree and won't cook as well for this application.
2. In a hot pan (medium-hot to hot temp), saute shallots in butter and olive oil until translucent.
3. Add minced garlic to the pan. Saute for 30-60 secs, being careful not to overcook the garlic.
4. Add cauliflower, salt and pepper to pan. Cook until done.
Now I cooked this and some of it turned out crispy and some didn't. Some folks thought it was hashbrowns. A different approach I took another time was to bake/broil the cauliflower afterwords on a sheet/hotel pan to lightly brown and crisp it. YMMV.
@vinbarnes
vinbarnes / gist:1092838
Created July 19, 2011 15:46 — forked from jaminguy/gist:1092835
Dalli Sinatra Test
get '/dalli_test' do
some_var = settings.cache.get('some_var')
if some_var
"some_var is not nil: #{some_var}\n"
else
"some_var is nil: #{some_var}\n"
settings.cache.set('some_var', 'some_value')
end
end
W, [2011-09-19T13:29:07.670622 #18914] WARN -- : runner.rb:78:in `run' Failed to handle message: undefined method `keys' for "ping":String - NoMethodError
W, [2011-09-19T13:29:07.670719 #18914] WARN -- : runner.rb:79:in `run' /Users/barnekr/Documents/dev/projects/ogc/puppetlabs/mcollective-collective-builder/collective/saturnino.puppetlabs.lan-0/lib/mcollective/security/base.rb:61:in `validate_filter?'
/Users/barnekr/Documents/dev/projects/ogc/puppetlabs/mcollective-collective-builder/collective/saturnino.puppetlabs.lan-0/lib/mcollective/message.rb:140:in `validate'
/Users/barnekr/Documents/dev/projects/ogc/puppetlabs/mcollective-collective-builder/collective/saturnino.puppetlabs.lan-0/lib/mcollective/runner.rb:127:in `receive'
/Users/barnekr/Documents/dev/projects/ogc/puppetlabs/mcollective-collective-builder/collective/saturnino.puppetlabs.lan-0/lib/mcollective/runner.rb:59:in `run'
/Users/barnekr/Documents/dev/projects/ogc/puppetlabs/mcollective-collective-builder/collect
maglev-head :001 > Maglev::PERSISTENT_ROOT
NameError: uninitialized constant STRUCT_ATTRS_fieldNames
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:319:in `output_value'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:160:in `eval_input'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:162:in `eval_input'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:280:in `signal_status'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:281:in `signal_status'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:156:in `eval_input'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb/ruby-lex.rb:244:in `each_top_level_statement'
from /Users/barnekr/.rvm/rubies/maglev-head/lib/ruby/1.8/irb/ruby-lex.rb:253:in `each_top_level_statement'
#!/bin/bash
TARGET_HOST='hoenir.websages.com'
TMP=$(mktemp -d /tmp/sslcert.XXXX)
cat<<EOF > ${TMP}/openssl.cnf
[ req ]
distinguished_name = req_distinguished_name
req_extensions = v3_req
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9
PassengerRuby /usr/bin/ruby1.8
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
irbbarnekr@saturnino ~ $ irb
>> def wham(mark, list)
>> list.each {|item| puts "#{item} got whammed!"}
>> end
=> nil
>> def subscribe(mark, list, callback)
>> callback.call(mark, list)
>> end
=> nil
>> subscribe('one', %w[buddy guy], Proc.new {|*args| wham(*args)})