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
<?php
/**
* MoviedbComponent - API-Implementation for 'themoviedb.org'
* API-Dokumentation: http://api.themoviedb.org/2.0/docs/
*
* Usage:
* 1. Include this component in your controller
* |-> Example: public $components = array('Moviedb');
* 2. Request your API-Key and edit the component config below
* 3. Getting started to use the component
<?xml version="1.0" encoding="UTF-8" ?>
<hashes>
<movie hash="8e245d9679d31e12" imdb_id="tt1144884" id="">
<movie hash="61f7751fc2a72bfb" imdb_id="tt0361748" id="16869">
</hashes>
60366
60366
60366
60366
19078
19078
19078
19078
18498
18498
[#<Cast name: "Brad Pitt", character: "Tyler Durden", role: nil, _id: "4accf4b845af591063000002", movie: "4accf4a945af591045000001", person: "4accf4b845af591063000001">, #<Cast name: "Edward Norton", character: "Narrator", role: nil, _id: "4accf4c645af59107f000002", movie: "4accf4a945af591045000001", person: "4accf4c645af59107f000001">, #<Cast name: "Meatloaf", character: "Conelius", role: nil, _id: "4acd02da45af591121000002", movie: "4accf4a945af591045000001", person: "4acd02da45af591121000001">]
require 'rubygems'
require 'sinatra'
require 'mongo_mapper'
# ==============================================================================================================
# DB SETUP
MongoMapper.database = 'mytest'
require 'rubygems'
require 'sinatra'
require 'mongo_mapper'
# =======================================================================================================
# DB SETUP
MongoMapper.database = 'mytest'
# Default backend
backend apache {
.host ="127.0.0.1";
.port = "8081";
.max_connections = 100;
}
backend unicorn {
.host = "127.0.0.1";
.port = "8082";
0 CLI - Rd ping
0 CLI - Wr 200 PONG 1276811727 1.0
0 CLI - Rd ping
0 CLI - Wr 200 PONG 1276811730 1.0
0 CLI - Rd ping
0 CLI - Wr 200 PONG 1276811733 1.0
0 CLI - Rd ping
0 CLI - Wr 200 PONG 1276811736 1.0
11 SessionOpen c 68.144.18.239 36804 0.0.0.0:8080
11 ReqStart c 68.144.18.239 36804 546731982
Jun 17 22:35:00 domU-12-31-39-18-2C-71 varnishd[25641]: child (29388) Started
Jun 17 22:35:00 domU-12-31-39-18-2C-71 varnishd[25641]: Child (29388) said
Jun 17 22:35:00 domU-12-31-39-18-2C-71 varnishd[25641]: Child (29388) said Child starts
Jun 17 22:35:17 domU-12-31-39-18-2C-71 varnishd[25641]: Child (29388) died signal=6
Jun 17 22:35:17 domU-12-31-39-18-2C-71 varnishd[25641]: Child (29388) Panic message: Missing errorhandling code in parse_esi_tag(), cache_esi.c line 634:#012 Condition(q < ew->tag.e) not true.thread = (cache-worker)#012ident = Linux,2.6.32-305-ec2,x86_64,-smalloc,-hclassic,epoll#012Backtrace:#012 0x424738: pan_ic+b8#012 0x418424: parse_esi_tag+104#012 0x41a27f: ESI_Parse+acf#012 0x413fd0: cnt_fetch+9f0#012 0x4151f5: CNT_Session+315#012 0x425ee8: wrk_do_cnt_sess+b8#012 0x4262bb: wrk_thread_real+35b#012 0x7f5914d6b9ca: _end+7f59146f66e2#012 0x7f591462c6cd: _end+7f5913fb73e5#012sp = 0x7f58fe803008 {#012 fd = 11, id = 11, xid = 1214299654,#012 client = 68.144.18.239:46244,#012 ste
Last login: Mon Aug 16 09:14:16 on ttys007
rTravis-Bells-iMac:~ travisbell$ traceroute hwcdn.themoviedb.org
traceroute to tlb.hwcdn.net (69.16.175.42), 64 hops max, 52 byte packets
1 10.0.1.1 (10.0.1.1) 1.295 ms 0.544 ms 0.522 ms
2 * * *
3 rd1no-ge7-0-0-12.cg.shawcable.net (64.59.139.66) 9.705 ms 10.870 ms 9.503 ms
4 rc1no-pos10-0.cg.shawcable.net (66.163.71.133) 9.277 ms 11.688 ms 10.688 ms
5 rc2so-tge0-0-1-0.cg.shawcable.net (66.163.77.9) 12.804 ms 12.211 ms 12.360 ms
6 rc2wh-tge0-2-1-0.vc.shawcable.net (66.163.77.226) 24.618 ms 23.474 ms 25.455 ms
7 rc2sj-pos6-0-0.cl.shawcable.net (66.163.76.66) 44.859 ms 46.407 ms 45.716 ms