I hereby claim:
- I am syd on github.
- I am syd (https://keybase.io/syd) on keybase.
- I have a public key whose fingerprint is 7558 C5BB FE7A D948 6E0F 29A1 744C 17EC FC59 7759
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am syd on github. | |
| * I am syd (https://keybase.io/syd) on keybase. | |
| * I have a public key whose fingerprint is 92B0 A423 C752 E5C0 32B5 9397 B122 9A90 DD2A 6139 | |
| To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
| require 'sinatra' | |
| get '/' do | |
| erb :index | |
| end | |
| put '/' do | |
| "in put" | |
| end |
| require 'rubygems' | |
| require 'myapp' | |
| run Sinatra::Application |
| # Copyright 2009 Unbit S.a.s. <[email protected]> | |
| # see the COPYRIGHT file | |
| $stdout.sync = true | |
| options = {} | |
| if Process.uid == 0 | |
| puts "Never run uRack as root !!!" | |
| exit | |
| end |
| a |
| syd@teh: sudo gem update --backtrace | |
| Updating installed gems | |
| ERROR: While executing gem ... (ArgumentError) | |
| marshal data too short | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:209:in `load' | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:209:in `load_specs' | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:173:in `list' | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:165:in `each' | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:165:in `list' | |
| /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:116:in `find_matching' |
| require 'rubygems' | |
| require 'eventmachine' | |
| module SimpleResponse | |
| def receive_data data | |
| if data =~ /^GET/ | |
| then | |
| send_data "HTTP/1.1 200\nContent-type: text/plain\n\nHello World!" | |
| close_connection_after_writing | |
| else |
| require 'rubygems' | |
| require 'sinatra' | |
| get '/' do | |
| haml :index | |
| end | |
| post '/' do | |
| params[:upload][:tempfile].read | |
| end |
| ✈ | |