Skip to content

Instantly share code, notes, and snippets.

View tab1293's full-sized avatar

Tom Berger tab1293

View GitHub Profile
@tab1293
tab1293 / list.txt
Created March 29, 2020 23:07
FFMPEG subtitle codec image/text list breakdown
TEXT ..S... arib_caption ARIB STD-B24 caption
TEXT DES... ass ASS (Advanced SSA) subtitle (decoders: ssa ass ) (encoders: ssa ass )
IMAGE DES... dvb_subtitle DVB subtitles (decoders: dvbsub ) (encoders: dvbsub )
IMAGE ..S... dvb_teletext DVB teletext
IMAGE DES... dvd_subtitle DVD subtitles (decoders: dvdsub ) (encoders: dvdsub )
TEXT D.S... eia_608 EIA-608 closed captions (decoders: cc_dec )
IMAGE D.S... hdmv_pgs_subtitle HDMV Presentation Graphic Stream subtitles (decoders: pgssub )
TEXT ..S... hdmv_text_subtitle HDMV Text subtitle
TEXT D.S... jacosub JACOsub subtitle
TEXT D.S... microdvd MicroDVD subtitle
@tab1293
tab1293 / main.go
Created January 19, 2020 22:14
Anacrolix torrent panic with SOCKS 5 proxy
package main
import (
"log"
"github.com/anacrolix/torrent"
)
func main() {
cfg := torrent.NewDefaultClientConfig()
@tab1293
tab1293 / description.txt
Created January 5, 2020 22:07
Idle kuberenetes node description not being brought down down scaled
Name: gke-project-dev-dl-n1-2-pvm-9443c1df-rqwk
Roles: <none>
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/fluentd-ds-ready=true
beta.kubernetes.io/instance-type=n1-standard-2
beta.kubernetes.io/os=linux
cloud.google.com/gke-nodepool=dl-n1-2-pvm
cloud.google.com/gke-os-distribution=cos
cloud.google.com/gke-preemptible=true
failure-domain.beta.kubernetes.io/region=us-east4
@tab1293
tab1293 / affinity.go
Last active October 15, 2019 00:55
Failed Kubernetes job node pool selector
j := &batch.Job{
Spec: batch.JobSpec{
Template: core.PodTemplateSpec{
Spec: core.PodSpec{
Affinity: &core.Affinity{
NodeAffinity: &core.NodeAffinity{
RequiredDuringSchedulingIgnoredDuringExecution: &core.NodeSelector{
NodeSelectorTerms: []core.NodeSelectorTerm{
{
MatchExpressions: []core.NodeSelectorRequirement{
@tab1293
tab1293 / test.py
Created February 11, 2019 20:42
Attempt to record GRPC response time
from tornado.ioloop import IOLoop
from tornado.gen import Future
def _fwrap(f, gf, ioloop, start_time):
try:
gf_result = gf.result()
response_time = ioloop.time() - start_time
f.set_result(gf_result)
except Exception as e:
f.set_exception(e)
@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)
@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 / 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 / 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 / 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',