Skip to content

Instantly share code, notes, and snippets.

@FabianBartl
FabianBartl / create-chapters.py
Last active October 24, 2024 23:21 — forked from cliss/mergechapters.py
Create chapters from text file by modifying ffmetadata. Merge videos with chapters while keeping all audio and subtitle tracks.
# Create chapters from text file by modifying ffmetadata
# https://ikyle.me/blog/2020/add-mp4-chapters-ffmpeg
import re, sys
if len(sys.argv) < 2:
print(f"Usage: {__file__} [chapters file]")
exit()
chapters = list()
@bmatthewshea
bmatthewshea / APT-KEY-Deprecated_Fix_Debian_Ubuntu.md
Last active April 25, 2025 00:35
Add gpg key for Debian/Ubuntu repo - New format

apt-key add (key) is deprecated

On Debian Bookworm when running apt-key add.

NOTE: RSPAMD is only used as an example. This method should work for any deprecated install instructions for apt-key.

While executing:
wget -O- https://rspamd.com/apt-stable/gpg.key | apt-key add -

The following is observed:

"Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details."