Skip to content

Instantly share code, notes, and snippets.

View smp's full-sized avatar
🎥
Making video work on the web

Shawn Przybilla smp

🎥
Making video work on the web
View GitHub Profile
# Turn on debugger by default and reloader
manager.add_command("runserver", Server(
use_debugger = True,
use_reloader = True,
host = '0.0.0.0')
)
<p>
Please enter your OpenID, or select one of the providers below:<br>
{{form.openid(size=80)}}
{% for error in form.errors.openid %}
<span style="color: red;">[{{error}}]</span>
{% endfor %}<br>
|{% for pr in providers %}
<a href="javascript:set_openid('{{pr.url}}', '{{pr.name}}');">{{pr.name}}</a> |
{% endfor %}
</p>
ffmpeg version N-82468-g47f7583 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
configuration: --prefix=/root/ffmpeg/build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg/build/include --extra-l
dflags=-L/root/ffmpeg/build/lib --bindir=/root/bin --enable-gpl
libavutil 55. 40.100 / 55. 40.100
libavcodec 57. 66.103 / 57. 66.103
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 67.100 / 6. 67.100
provider:
name: aws
runtime: nodejs4.3
region: us-west-2
stage: dev
custom:
myStage: ${opt:stage, self:provider.stage}
environment:
TABLE_NAME: playTable-${self:custom.myStage}
@smp
smp / gist:af11e821a16283779c55296d329c550d
Last active March 9, 2017 00:36
Live RTMP Colorbars/tone with FFMPEG Docker Container
docker run jrottenberg/ffmpeg -stats -re -f lavfi -i aevalsrc="sin(400*2*PI*t)" -f lavfi -i testsrc=size=1280x720:rate=30 -vcodec libx264 -b 500k -c:a aac -b:a 160k -f flv 'rtmp://172.17.0.3/live/test'
@smp
smp / torrent-complete.sh
Created October 28, 2021 17:22 — forked from paul-chambers/torrent-complete
Helper script for deluge. It hardlinks completed torrents into a destination folder (or unrars it directly into the destination, if appropriate)
#!/bin/bash
# Helper script for the Deluge torrent client
# Intended to be run at torrent completion, using the 'torrent complete' event in the 'Execute' plugin.
#
# The basic idea is to hardlink the files that deluge has just finished downloading to a second directory.
# This allows you to configure deluge to automatically pause or delete torrents when they reach a given seed ratio,
# while also keeping a copy around for other reasons. For example, SyncThing could be used to propagate new downloads
# to a remote machine to be processed further. When processing has finished, and the file is deleted/moved out of the
# Syncthing folder, the remote Syncthing will propagate a deletion back to the original Synchting (on the machine