This will use the nginx SSl stream, and ssl_stream_preread modules
# chmod 777 /var/run
# mkdir /var/run/nginx
# chown -R www-data:www-data /var/run/nginx
#!/bin/bash | |
ffmpeg \ | |
-ss 90.75 -i "input1.mp4" \ | |
-ss 0 -i "input2.mp4" \ | |
-filter_complex "\ | |
[0:v]setpts=PTS-STARTPTS,crop=iw/2:ih:iw/4:0[leftRaw];\ | |
[1:v]setpts=PTS-STARTPTS,crop=iw/2:ih:iw/4:0[rightRaw];\ | |
[leftRaw]scale=-1:1080[left];\ | |
[rightRaw]scale=-1:1080[right];\ |
votesPerState = {{"Alabama", 9.`}, {"Alaska", 3.`}, {"Arizona", | |
11.`}, {"Arkansas", 6.`}, {"California", 55.`}, {"Colorado", | |
9.`}, {"Connecticut", 7.`}, {"Delaware", | |
3.`}, {"DistrictOfColumbia", 3.`}, {"Florida", 29.`}, {"Georgia", | |
16.`}, {"Hawaii", 4.`}, {"Idaho", 4.`}, {"Illinois", | |
20.`}, {"Indiana", 11.`}, {"Iowa", 6.`}, {"Kansas", | |
6.`}, {"Kentucky", 8.`}, {"Louisiana", 8.`}, {"Maine", | |
4.`}, {"Maryland", 10.`}, {"Massachusetts", 11.`}, {"Michigan", | |
16.`}, {"Minnesota", 10.`}, {"Mississippi", 6.`}, {"Missouri", | |
10.`}, {"Montana", 3.`}, {"Nebraska", 5.`}, {"Nevada", |
#!/bin/bash | |
# DEPENDENCIES: | |
# - jq: https://stedolan.github.io/jq/ | |
# - pup: https://github.com/EricChiang/pup | |
# - python-Levenshtein: https://pypi.org/project/python-Levenshtein/ | |
# - You'll need a Steam API key, which you can get from https://steamcommunity.com/dev/apikey | |
# USAGE: | |
# This pulls in the full steam app list from the API, your user's game list via the Steam API, |
interfaces { | |
ethernet eth1 { | |
address 10.0.0.1/24 | |
address 192.168.100.1/24 | |
address ffff:ffff:ffff:ffff::1/64 | |
address ffff:ffff:ffff:ffff::1/64 | |
description Athens | |
duplex auto | |
firewall { | |
local { |
#!/bin/bash | |
tracking_number="$1" | |
while [ true ] | |
do | |
date +%FT%T | |
echo -n "Tracking ${tracking_number} " | |
curl 'https://www.fedex.com/trackingCal/track' \ | |
-s \ | |
-H 'Connection: keep-alive' \ | |
-H 'Pragma: no-cache' \ |
#!/bin/bash | |
# For non-256 colour terminals | |
#PS1='\[\e]0;\w\a\]\n\[\e[00;35m\]${AWS_PROFILE}$([ "$AWS_PROFILE" == "" ] && echo -n "" || echo -n " ")' | |
# The default region, if set | |
PS1=$PS1'\[\033[38;5;92m\]${AWS_DEFAULT_REGION}$([ "$AWS_DEFAULT_REGION" == "" ] || echo -n " ")' | |
# The AWS profile | |
PS1=$PS1'\[\e]0;\w\a\]\[\033[38;5;208m\]${AWS_PROFILE}$([ "$AWS_PROFILE" == "" ] || echo -n " ")' | |
# The existence of environment variables |
const fs = require('fs'); | |
let rawdata = fs.readFileSync('/working/out4.json'); | |
let data = JSON.parse(rawdata); | |
// You'll need to twiddle the dpi, page size, and font size to get your stuff to layout properly. | |
// Assumes uniform font size in the input. | |
let dpi = 200; | |
let width = 17 * dpi; | |
let height = 11 * dpi; | |
const PDFDocument = require('pdfkit'); |
[String]::Join( | |
"", | |
(( | |
[String]::Join( | |
" ", | |
(fsutil reparsepoint query (Get-Command python3).source | | |
Select-String -Pattern "^[0-9a-f]*: ([0-9a-f ]*) ([0-9a-f ]*) .*$" -AllMatches | | |
% { $_.Matches.Groups[1..2].Value})) -replace "([0-9a-f]{2}) ([0-9a-f]{2})",'$2$1' | |
).Split(" ") | | |
where { $_.length -gt 0 } | |
#!/bin/bash | |
docker run --rm -d --name pihole \ | |
-p 53:53/tcp -p 53:53/udp -p 80:80 \ | |
-v /home/pihole/etc/pihole:/etc/pihole/ \ | |
-v /home/pihole/etc/dnsmasq.d:/etc/dnsmasq.d/ \ | |
--dns $(nslookup 1.1.1.1 | \ | |
grep Server: | tr -s '\t' | \ | |
cut -f2) \ | |
-e DNS1=$(nslookup 1.1.1.1 | \ |