sox -r 44100 -n -b 16 -c 2 input.wav synth 1800 vol -1dB
parec -d <sink>.monitor | sox -t raw -b 16 -e signed -c 2 -r 44100 - output.wav
| #!/usr/bin/python3 | |
| # requires gokey, keyutils, openssl, tpm2-tools | |
| # configure with | |
| # echo 'create * tpm2:derived:* * |<path to this script> %t %d %c %u %g' > /etc/request-key.d/derived.conf | |
| import hashlib | |
| import os | |
| import subprocess | |
| import sys |
| # Install ffmpeg | |
| brew install ffmpeg | |
| # Download | |
| ffmpeg -i https://foo.com/bar.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4 |
| package main | |
| import ( | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "os/user" | |
| "strconv" | |
| ) |
| #!/usr/bin/python | |
| # | |
| # Convert a Row-Based-Replication binary log to Statement-Based-Replication format, cheating a little. | |
| # | |
| # Additional added some code to transfer INSERT clauses to proper column names. | |
| # | |
| # Usage: mysqlbinlog -v --base64-output=DECODE-ROWS $log | python binlog-rbr-to-sbr.py -hHOST -uUSERNAME -pPASSWORD - | grep -B 1 '^INSERT ' | |
| # Based on: https://gist.github.com/shlomi-noach/cc243fd690403e7617e3 | |
| # |