Skip to content

Instantly share code, notes, and snippets.

View orianmarx's full-sized avatar

Orian Marx orianmarx

View GitHub Profile
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
INFO ruby 2.0.0 (2013-06-27) [x86_64-linux]
2013-10-28T00:57:06.362390+00:00 app[web.1]: [2013-10-28 00:57:06] INFO WEBrick 1.3.1
2013-10-28T00:57:06.841370+00:00 heroku[web.1]: State changed from starting to up
2013-10-28T00:57:06.838929+00:00 heroku[web.1]: Process exited with status 143
2013-10-28T00:57:17.008743+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
2013-10-28T00:57:17.008584+00:00 app[web.1]: NoMethodError - undefined method `secure?' for #<Rack::Request:0x007fc66dd9a8d8>:
$ git remote remove heroku
$ git remote add heroku git@heroku.com:simple-forecast.git
web: bundle exec rackup config.ru -p $PORT
request = Rack::Request.new(env)
<Sinatra::Request:0x007fe074164818
@env=
{"CONTENT_LENGTH"=>"14",
"CONTENT_TYPE"=>"application/x-www-form-urlencoded",
"GATEWAY_INTERFACE"=>"CGI/1.1",
"PATH_INFO"=>"/",
"QUERY_STRING"=>"",
"REMOTE_ADDR"=>"127.0.0.1",
"REMOTE_HOST"=>"localhost",
"REQUEST_METHOD"=>"POST",
before do
@this_variable = 1+1
end
@orianmarx
orianmarx / gist:4220936
Created December 6, 2012 00:47
App.net Interactions example
$ curl -H "Authorization: BEARER [access token]" "https://alpha-api.app.net/stream/0/users/me/interactions"
{
"data":[
{
"action":"reply",
"objects":[
{
// post object
}
],