Skip to content

Instantly share code, notes, and snippets.

@scyto
scyto / proxmox-tb-net.md
Last active May 8, 2024 21:41
Thunderbolt Networking Setup

Thunderbolt Networking

this gist is part of this series

NOTE FOR THIS TO BE RELIABLE ON NODE RESTARTS YOU WILL NEED PROXMOX KERNEL 6.2.16-14-pve OR HIGER

This fixes issues i bugged with the thunderbolt / thunderbolt-net maintainers (i will take everyones thanks now, lol)

Install LLDP - this is great to see what nodes can see which.

  • install lldpctl with apt install lldpd
@ricekab
ricekab / ffmpeg_example.txt
Last active July 17, 2023 10:22
ffmpeg overlay + drawtext simple examples
1. Add overlay over entire video. No extra text
ffmpeg -i examplecut.mp4 -i overlay.png -filter_complex "[0:v][1:v] overlay" -c:a copy output.mp4
2. Add overlay over for 10 seconds in the middle (5s - 15s in this example)
ffmpeg -i examplecut.mp4 -i overlay.png -filter_complex "[0:v][1:v] overlay=enable='between(t,5,15)'" -c:a copy output2.mp4
2b. Add overlay starting from X time until the end (X=5 in this example)
@glasslion
glasslion / vtt2text.py
Last active April 30, 2024 12:54
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.