Skip to content

Instantly share code, notes, and snippets.

View tab1293's full-sized avatar

Tom Berger tab1293

View GitHub Profile
@tab1293
tab1293 / gist:e709f15ad8abf32412a2
Created September 8, 2014 01:16
Mongo Create index crash
2014-09-07T23:41:50.546+0000 [initandlisten] connection accepted from 127.0.0.1:50063 #1 (1 connection now open)
2014-09-07T23:42:11.373+0000 [conn1] build index on: IDTorr3nt.tpb properties: { v: 1, key: { type: 1.0, seeders: 1.0 }, name: "type_1_seeders_1", ns: "IDTorr3nt.tpb" }
2014-09-07T23:42:11.421+0000 [conn1] building index using bulk method
2014-09-07T23:42:14.001+0000 [conn1] Index Build: 31600/1434316 2%
2014-09-07T23:42:17.002+0000 [conn1] Index Build: 76900/1434316 5%
2014-09-07T23:42:20.077+0000 [conn1] Index Build: 120100/1434316 8%
2014-09-07T23:42:23.203+0000 [conn1] Index Build: 150100/1434316 10%
2014-09-07T23:42:26.192+0000 [conn1] Index Build: 178400/1434316 12%
2014-09-07T23:42:29.038+0000 [conn1] Index Build: 205700/1434316 14%
2014-09-07T23:42:32.015+0000 [conn1] Index Build: 234300/1434316 16%
application = tornado.web.Application([
(r"/test/(.*?)", StaticTrackHandler, {"path": "/home/ubuntu/echostream/tracks"}),
], debug=True)
class StaticTrackHandler(tornado.web.StaticFileHandler):
@classmethod
def get_current_user(self):
return self.get_secure_cookie('user')
@tab1293
tab1293 / storage_check.js
Created February 4, 2016 22:33
Chrome Storage Check
// Request storage usage and capacity left
window.webkitStorageInfo.queryUsageAndQuota(webkitStorageInfo.TEMPORARY,
//the type can be either TEMPORARY or PERSISTENT
function(used, remaining) {
console.log("Used quota: " + used + ", remaining quota: " + remaining);
}, function(e) {
console.log('Error', e);
} );
@tab1293
tab1293 / vod_bundle_rating_filter.php
Created February 16, 2016 21:22
VOD Bundle and Content Rating Filter
<?php
require_once(dirname(__DIR__). '/scripts/vimeo.script.init.php');
use Vimeo\Datasource\DsEquals;
use Vimeo\Datasource\DsBitwise;
VimeoApplication::startup(\VimeoApplication::MODE_WEB);
set_memory_limit(MEMORY_LIMIT_512M);
$bundle_id = APPLICATION_PRODUCTION ? OnDemandBundle::LOGGED_OUT_HOMEPAGE : OnDemandBundle::FEATURED;
$content_rating = Clip::RATING_SAFE;
@tab1293
tab1293 / wt.log
Created January 31, 2017 06:28
webtorrent debug
This file has been truncated, but you can view the full file.
Tue, 31 Jan 2017 05:45:36 GMT webtorrent new webtorrent (peerId 2d5757303039382d462b477631704d4e2b475333, nodeId 6476a75523ac83b2ee039f6a2c1c017990ff2094, port 0)
Tue, 31 Jan 2017 05:45:36 GMT webtorrent:tcp-pool create tcp pool (port 0)
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-dht [6476a75] new DHT 6476a75523ac83b2ee039f6a2c1c017990ff2094
Tue, 31 Jan 2017 05:45:36 GMT webtorrent add
Tue, 31 Jan 2017 05:45:36 GMT webtorrent:torrent [2d57573] new torrent
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-dht [6476a75] listening 50003
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-tracker:client new client 466ac0958137b8677f1fdab8cd924bd875dd03c4
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-tracker:http-tracker new http tracker http://127.0.0.1.stackoverflow.tech/5b21f3654316c0c14958752167e584db/announce
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-tracker:http-tracker new http tracker http://async.empirehost.me/5b21f3654316c0c14958752167e584db/announce
Tue, 31 Jan 2017 05:45:36 GMT bittorrent-tracker:http-tracker new http tracker htt
@tab1293
tab1293 / resp
Created February 13, 2017 16:15
api up response
{ uri: '/users/tab1293/tickets/557eeb9b2859b4ded8c07ffcd32886ea',
ticket_id: '557eeb9b2859b4ded8c07ffcd32886ea',
user:
{ uri: '/users/26250239',
name: 'Tom Berger',
link: 'https://vimeo.com/tab1293',
location: 'New York',
bio: 'Upload Engineer here at Vimeo',
created_time: '2014-03-25T06:53:25+00:00',
account: 'pro',
@tab1293
tab1293 / log.txt
Created February 14, 2017 22:31
upload server deploy
[thomas@uploadserver ~]$ sudo tar xf /var/tmp/uploadserver.tar -C /home/vimeo
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
tar: Removing leading `..' from member names
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
@tab1293
tab1293 / index.html
Created February 20, 2017 17:46
websocket file reader
<html>
<head></head>
<body>
<form action="/file" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
<script>
@tab1293
tab1293 / error.txt
Created May 16, 2017 19:53
Node HTTP Server Error
{ Error: read ECONNRESET at exports._errnoException (util.js:1018:11) at TCP.onread (net.js:572:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
@tab1293
tab1293 / comps.txt
Created October 23, 2018 14:42
ffprobe
# SHUTTERSTOCK TC
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'shutterstock_v6604244.mov':
Metadata:
creation_time : 2014-05-28T13:38:27.000000Z
Duration: 00:00:19.39, start: 0.000000, bitrate: 176925 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709, progressive), 1920x1080, 176920 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
creation_time : 2014-05-28T13:38:27.000000Z
handler_name : Apple Alias Data Handler
encoder : ProRes 422 (HQ)