-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
# varnish 4.1 | |
sudo yum -y install autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz | |
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish41/script.rpm.sh | sudo bash | |
wget --content-disposition https://packagecloud.io/varnishcache/varnish41/packages/el/6/varnish-4.1.10-1.el6.x86_64.rpm/download.rpm | |
sudo rpm -Uvh varnish-4.1.10-1.el6.x86_64.rpm | |
/usr/sbin/varnishd -V | |
# varnish 4 | |
sudo yum -y install autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz |
# AWS Lambda `ldconfig -p`, region `us-east-1`, nodejs 8.10 runtime, 22 May 2019, Amazon Linux 2018.03 | |
# See https://github.com/claudiajs/lambda-vm-info for how this was generated and to create an updated version | |
241 libs found in cache `/etc/ld.so.cache' | |
libz.so.1 (libc6,x86-64) => /lib64/libz.so.1 | |
libxslt.so.1 (libc6,x86-64) => /usr/lib64/libxslt.so.1 | |
libxshmfence.so.1 (libc6,x86-64) => /usr/lib64/libxshmfence.so.1 | |
libxml2.so.2 (libc6,x86-64) => /usr/lib64/libxml2.so.2 | |
libxcb.so.1 (libc6,x86-64) => /usr/lib64/libxcb.so.1 | |
libxcb-xvmc.so.0 (libc6,x86-64) => /usr/lib64/libxcb-xvmc.so.0 |
'use strict' | |
const timeout = ms => new Promise(res => setTimeout(res, ms)) | |
function convinceMe (convince) { | |
let unixTime = Math.round(+new Date() / 1000) | |
console.log(`Delay ${convince} at ${unixTime}`) | |
} | |
async function delay () { |
$siren = mt_rand(100000000, 999999999); | |
$key = (12 + 3 * ($siren % 97)) % 97; | |
print 'FR' . $key . $siren; |
first name | last name | age | |
---|---|---|---|
Stephen | Sugden | 31 | |
Tom | Reznik | 29 | |
Justin | Thomas | 30 |
input { | |
elasticsearch { | |
hosts => [ "HOSTNAME_HERE" ] | |
port => "9200" | |
index => "INDEXNAME_HERE" | |
size => 1000 | |
scroll => "5m" | |
docinfo => true | |
scan => true | |
} |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <[email protected]> |