Skip to content

Instantly share code, notes, and snippets.

View travisbell's full-sized avatar
🚀
ZOOM ZOOM

Travis Bell travisbell

🚀
ZOOM ZOOM
View GitHub Profile
Request URL:http://hwcdn.themoviedb.org/backdrops/7f1/4bc90276017a3c57fe0007f1/indiana-jones-and-the-raiders-of-the-lost-ark-original.jpg
Request Method:GET
Status Code:200 OK
Request Headers
Cache-Control:no-cache
Pragma:no-cache
User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16
Response Headers
Accept-Ranges:none
Cache-Control:no-cache
Travis-Bells-iMac:~ travisbell$ curl -I -L "http://www.themoviedb.org/image/v2_backdrops/163/4c769fc87b9aa16a07000163/the-american-original.jpg"
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 06 Sep 2010 21:42:08 GMT
Content-Type: image/jpeg
Connection: keep-alive
Keep-Alive: timeout=20
Status: 200 OK
Last-Modified: Thu, 26 Aug 2010 17:09:29 GMT
Content-Length: 282641
File.open(ENV['tvdb_id_file'], "r") do |infile|
while (line = infile.gets)
counter = counter + 1
break if counter == 50
xml += line
end
end
Nov 19 17:46:08 vzmdapi020 varnishd[27329]: CLI telnet 127.0.0.1 34111 127.0.0.1 6082 Rd start
Nov 19 17:46:08 vzmdapi020 varnishd[27329]: child (17200) Started
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: CLI telnet 127.0.0.1 34111 127.0.0.1 6082 Wr 200
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17200) said
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17200) said Child starts
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17200) said Dropped 0 segments to make free_reserve
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17200) died signal=6
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: child (17257) Started
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17257) said
Nov 19 17:46:09 vzmdapi020 varnishd[27329]: Child (17257) said Child starts
@travisbell
travisbell / gist:3740613
Created September 18, 2012 00:40
Uninstall rake 0.9.2.2
rvm use @global && gem uninstall rake -v 0.9.2.2
require 'goliath'
require 'em-synchrony'
require "em-synchrony/em-http"
class ProxyTest < Goliath::API
use Goliath::Rack::Render, 'json'
def response(env)
http_request = EM::HttpRequest.new("http://localhost:4568#{env['REQUEST_URI']}", :connect_timeout => 1)
@travisbell
travisbell / keybase.md
Created June 16, 2014 16:07
keybase.md

Keybase proof

I hereby claim:

  • I am travisbell on github.
  • I am travisbell (https://keybase.io/travisbell) on keybase.
  • I have a public key whose fingerprint is 24E9 23E5 60F4 72CB 1767 45BA F958 1675 3C18 487D

To claim this, I am signing this object:

@travisbell
travisbell / Cool TMDb Queries.txt
Last active August 29, 2015 14:07
Some examples of some really cool discover queries on TMDb!
Q: What movies are in theatres?
URL: /discover/movie?primary_release_date.gte=2014-09-15&primary_release_date.lte=2014-10-22
Q: What are the most popular movies?
URL: /discover/movie?sort_by=popularity.desc
Q: What are the highest rated movies rated R?
URL: /discover/movie/?certification_country=US&certification=R&sort_by=vote_average.desc
Q: What are the most popular kids movies?
@travisbell
travisbell / gist:06236d854f61e23b2943
Last active August 29, 2015 14:21
Bar Stool Economics
Bar Stool Economics
Suppose that every day, ten men go out for beer and the bill for all ten comes to $100. If they paid their bill the way we pay our taxes, it would go something like this:
The first four men (the poorest) would pay nothing.
The fifth would pay $1.
The sixth would pay $3.
The seventh would pay $7.
The eighth would pay $12.
The ninth would pay $18.
Traviss-iMac:~ travisbell$ curl http://api.themoviedb.org/3/authentication/guest_session/new?api_key=###
{"success":true,"guest_session_id":"fcd3f83477eabeaa278e1af6a482b4bb","expires_at":"2015-06-19 21:09:36 UTC"}
Traviss-iMac:~ travisbell$ curl http://api.themoviedb.org/3/guest_session/fcd3f83477eabeaa278e1af6a482b4bb/rated_movies?api_key=###
{"page":1,"results":[],"total_pages":0,"total_results":0}
Traviss-iMac:~ travisbell$