Skip to content

Instantly share code, notes, and snippets.

Orian Marx orianmarx

Block or report user

Report or block orianmarx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7204723
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')
View gist:7203453
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>:
View gist:7203411
$ git remote remove heroku
$ git remote add heroku git@heroku.com:simple-forecast.git
View gist:7203341
web: bundle exec rackup config.ru -p $PORT
View gist:7203220
request = Rack::Request.new(env)
View gist:7203083
<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",
View gist:7201365
before do
@this_variable = 1+1
end
@orianmarx
orianmarx / gist:4220936
Created Dec 6, 2012
App.net Interactions example
View gist:4220936
$ curl -H "Authorization: BEARER [access token]" "https://alpha-api.app.net/stream/0/users/me/interactions"
{
"data":[
{
"action":"reply",
"objects":[
{
// post object
}
],
You can’t perform that action at this time.