Compare commits

...

3 commits

Author SHA1 Message Date
lhark 436137e979 Chromium autogain fix 2021-11-22 22:16:39 +01:00
lhark c074485b0a HTTP response times debugging trick 2021-11-22 22:16:29 +01:00
lhark 7218fb8885 More ffmpeg 2021-11-22 22:16:02 +01:00

16
how_to
View file

@ -383,8 +383,13 @@ Suckless sent:
Hack
Video and audio editing:
Inspect media file:
ffprobe in.mp{3,4}
Cut video/audio:
ffmpeg -ss "start" [-t "duration"|-to "end"] -i input.mp3 -acodec copy output.mp3
Extract audio from video:
# Lossless extract, use ffprobe to identify audio stream type
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
Remove audio from video file
ffmpeg -i in.mp4 -an out.mp4
Nvidia hardware encoding
@ -719,6 +724,7 @@ Runit logging:
runsv
* if <service>/log exists, redirects service's stdout to logger's stdin
* by default, runsv's stderr, stdout (and stdin?) are redirected to /dev/console
Android:
Uncompress android .ab backup files:
# https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file
@ -1145,6 +1151,9 @@ cURL cheatsheet:
curl -v <URL>
Follow redirects:
curl -L <URL>
Debug HTTP request response times:
# https://susam.in/maze/timing-with-curl.html
curl -L -w "time_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" https://example.com/
GPG:
Renew expired GPG public keys:
@ -1232,3 +1241,10 @@ Flash BIOS using CH341A and SOP8 clip:
cmp backup1.bin backup2.bin
Flashing firmware:
sudo flashrom --programmer ch341a_spi -w <new_firmware.bin>
Fix chromium microphone autogain (qutebrowser):
# Add this script to greasemonkey:
# https://github.com/joeywatts/disable-autogain-control-extension/blob/master/disableAutogain.js
# https://github.com/qutebrowser/qutebrowser/discussions/6628
# https://bugs.chromium.org/p/chromium/issues/detail?id=435112