Skip to content

Instantly share code, notes, and snippets.

View Qsick's full-sized avatar

Jason Cusick Qsick

View GitHub Profile
#!/usr/bin/ruby
require 'net/https'
require 'json'
url = 'https://goo.gl/Qq0aFP'
while ( (res = Net::HTTP.get_response(URI(url))).code.to_i == 301 )
url = res['location']
end

Keybase proof

I hereby claim:

  • I am qsick on github.
  • I am qsick (https://keybase.io/qsick) on keybase.
  • I have a public key whose fingerprint is 4F4E 0521 23A7 B905 C3ED ED60 A3FC BF1D 4385 2576

To claim this, I am signing this object: