Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
// install first binaries from http://ffxsam.s3.amazonaws.com/public/audiowaveform-lambda.zip | |
// @author Andrzej Ojczenasz https://github.com/ojczeo | |
// @version '1.0.0' | |
'use strict'; | |
process.env.PATH = process.env.PATH + ':' + process.env.LAMBDA_TASK_ROOT + '/bin'; | |
function getExtension(filename) { | |
var ext = path.extname(filename||'').split('.'); | |
return ext[ext.length - 1]; |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
THIS GIST WON'T BE UPDATED ANY MORE (24/10/18)
Follow the progress of this project here 3os.org Raspberry Pi 3 TOR Access Point Router Project
Network: Router RJ45 <--> Ethernet Port on Raspberry <--> TOR <--> Raspberry WIFI AC <--> WIFI CLIENT
# -- Download Rasbian Strech Lite from: https://www.raspberrypi.org/downloads/raspbian/
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# for unifi
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv |
is_on = false | |
step = 5*60 -- seconds | |
overlap = 10 -- seconds | |
function recalc() | |
local pos = mp.get_property_number("time-pos") | |
local duration = mp.get_property_number("duration") | |
next_seek = math.ceil((pos+1)/step)*step+overlap | |
if next_seek > duration then | |
next_seek = duration-1 |
brew options ffmpeg | |
brew install ffmpeg \ | |
--with-chromaprint \ | |
--with-fdk-aac \ | |
--with-fontconfig \ | |
--with-freetype \ | |
--with-frei0r \ | |
--with-game-music-emu \ | |
--with-libass \ |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// Pass in an array of numbers ranging from 0 to 20. | |
function playSparkline(notes) { | |
if (!window.AudioContext && !window.webkitAudioContext) { | |
return; | |
} | |
var playing = null; |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8