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:
| ::: [xx-host-1400][Y4qXPFeeRK2uKbggdiReig][xx-host-1400.domain.com][inet[/1400_ip:9300]]{aws_availability_zone=us-east-1d, master=true} | |
| Hot threads at 2016-01-12T20:51:55.974Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true: | |
| 40.1% (200.4ms out of 500ms) cpu usage by thread 'elasticsearch[xx-host-1400][search][T#6]' | |
| 7/10 snapshots sharing following 2 elements | |
| java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
| java.lang.Thread.run(Thread.java:745) | |
| 38.7% (193.5ms out of 500ms) cpu usage by thread 'elasticsearch[xx-host-1400][search][T#4]' | |
| 2/10 snapshots sharing following 33 elements |
| { | |
| "adult": false, | |
| "backdrop_path": "/szytSpLAyBh3ULei3x663mAv5ZT.jpg", | |
| "belongs_to_collection": { | |
| "id": 369310, | |
| "name": "Inside Out Collection", | |
| "poster_path": "/cfTkY8PECdrEj5Q1ok8GQpDuXMc.jpg", | |
| "backdrop_path": "/hyAAxzCiPDJhIR3WCIjddV5HIOV.jpg" | |
| }, | |
| "budget": 175000000, |
| $ curl -v "https://api.themoviedb.org/3/discover/movie?api_key=###&sort_by=popularity.asc" | |
| * Trying 75.101.138.13... | |
| * Connected to api.themoviedb.org (75.101.138.13) port 443 (#0) | |
| * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 | |
| * Server certificate: *.themoviedb.org | |
| * Server certificate: RapidSSL CA | |
| * Server certificate: GeoTrust Global CA | |
| > GET /3/discover/movie?api_key=###&sort_by=popularity.asc HTTP/1.1 | |
| > Host: api.themoviedb.org | |
| > User-Agent: curl/7.43.0 |
| tbell$ nslookup api.themoviedb.org | |
| Server: 127.0.0.1 | |
| Address: 127.0.0.1#53 | |
| Non-authoritative answer: | |
| Name: api.themoviedb.org | |
| Address: 107.20.157.161 | |
| Name: api.themoviedb.org | |
| Address: 75.101.138.13 | |
| Name: api.themoviedb.org |
| 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$ |
| 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. |
| 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? |
I hereby claim:
To claim this, I am signing this object:
| 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) |
| rvm use @global && gem uninstall rake -v 0.9.2.2 |