Compare commits
3 commits
412ee1d52b
...
436137e979
Author | SHA1 | Date | |
---|---|---|---|
436137e979 | |||
c074485b0a | |||
7218fb8885 |
16
how_to
16
how_to
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue