Skip to content

Instantly share code, notes, and snippets.

@turikhay
turikhay / yt-dlp-mp3.sh
Created July 24, 2024 20:31
yt-dlp mp3 download template
yt-dlp -x \
--audio-format mp3 \
--embed-metadata \
--embed-thumbnail \
"https://..."
@turikhay
turikhay / yt-dlp-archive.sh
Created January 12, 2024 16:24
yt-dlp archive template
yt-dlp "https://..." \
--embed-metadata \
--embed-thumbnail \
--embed-subs \
--embed-chapters \
--embed-info-json \
--remux-video mkv \
--download-archive videos.txt
@turikhay
turikhay / rtsync.md
Last active December 14, 2023 14:22
Reliable(-ish) rsync

Reliable(-ish) rsync

Sometimes I have unreliable connection, but rsync (nor rclone) don't support automatic resumption of a single file.

$ rsync -P file1 remote:
file1
     34,358,880  79%  301.00kB/s    0:00:30  client_loop: send disconnect: Broken pipe

rsync: [sender] write error: Broken pipe (32)
@turikhay
turikhay / HAProxy + LetsEncrypt.md
Last active September 8, 2023 19:18
HAProxy + Letsencrypt
certbot certonly \
    --dry-run \
    --agree-tos \
    --run-deploy-hooks \
    --deploy-hook /path/to/letsencrypt_haproxy_hook.sh \
    --standalone \
    --preferred-challenges http-01 \
    --http-01-port 54321 \
 -d ...
@turikhay
turikhay / ffmpeg-ps5-hdr.md
Last active April 29, 2023 20:54
ffmpeg filter to convert PS5 HDR recording to SDR video

tl;dr

-vf zscale=t=linear,tonemap=tonemap=clip:param=0.3,zscale=t=bt709:m=bt709:p=bt709:r=tv,format=yuv420p,eq=contrast=1.1:saturation=1.1

why

  1. Copying a video from PS5 to a thumb drive