This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> class Request; end | |
=> nil | |
irb(main):002:0> Request.class | |
=> Class | |
irb(main):003:0> Request.new.class | |
=> Request | |
irb(main):004:0> Request.new.class.to_s | |
=> "Request" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop schema public cascade; | |
drop extension plv8; | |
create schema public; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl https://api.heroku.com/apps/naaman-iter/builds -n -k -H 'Accept: application/vnd.heroku+json; version=3' -d '{"source_blob":{"url":"http://github.com/naaman/barebones-jetty/archive/master.tar.gz"}}' -X POST -H 'Content-Type: application/json' | |
{ | |
"id": "e2ee83c8-7c28-499d-bbe3-9249e2ec7b96", | |
"status": "started", | |
"created_at": "2014-02-28 00:19:19 +0000", | |
"source_blob": { | |
"url": "http://github.com/naaman/barebones-jetty/archive/master.tar.gz" | |
} | |
}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"foo/v3" | |
v1 "baz/v1" | |
"baz/v2" | |
) | |
func main() { | |
bourbon.Run(foo.Server, v1.Server, baz.Server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> cc = "\x91" | |
=> "\x91" | |
irb(main):002:0> cc.include?(cc) | |
=> false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Builds::UserEnvCompileEnabledTest user-env-compile enabled | |
Initializing repository, done. | |
-----> Fetching custom tar buildpack... done | |
-----> TEST app detected | |
USER=u9674 | |
SSH_CLIENT=10.200.57.229 49615 24578 | |
MAIL=/var/mail/u9674 | |
TEST_KEY=TEST_VALUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/api/health/db' do | |
Data.db_ping | |
to_json(status: 'ok') | |
rescue | |
raise UnavailableException | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h3 () { | |
domain=${HEROKU_API_URL:-"https://api.heroku.com"} | |
curl -n -k -H "Accept: application/vnd.heroku+json; version=3" ${domain}/$@ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'excon' | |
file = File.open(ARGV[1], 'rb') | |
streamer = lambda do | |
file.read(Excon.defaults[:chunk_size]).to_s | |
end | |
res = Excon.post( | |
"http://busl.herokuapp.com/streams/#{ARGV[0]}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'net/http' | |
require 'excon' | |
Excon.defaults[:chunk_size] = 1024*10 | |
streamer = lambda do | |
sleep((100..500).to_a.sample.to_f / 1000) | |
"#{%w(hello from streaming how do you do).to_a.sample * 30}\n" | |
end |
OlderNewer