Skip to content

Instantly share code, notes, and snippets.

@manjaroman2
manjaroman2 / gist:8527246d05573004a7552d902733dbf6
Created January 5, 2026 19:18
Binäre Rasterisierung in Python
import numpy as np
import matplotlib.pyplot as plt
from fontTools.ttLib import TTFont
from fontTools.pens.recordingPen import RecordingPen
# Font laden und Glyph-Konturen extrahieren
font = TTFont("DejaVuSerif.ttf")
glyph_set = font.getGlyphSet()
glyph = glyph_set["ampersand"] # oder: font.getBestCmap()[ord("&")]
@manjaroman2
manjaroman2 / tmdb.py
Created August 2, 2025 23:10
Tmdb dump
from pathlib import Path
from tqdm import tqdm
import json
import datetime
import os
import bisect
import time
import aiohttp
import asyncio
import shutil
@manjaroman2
manjaroman2 / sampdl.sh
Created October 15, 2023 00:10
Sample downloading bash script (yt-dlp)
#!/usr/bin/bash
sample_dir="~/music/sampledl"
yt_dlp_path="/usr/local/bin/yt-dlp"
audio_format="mp3"
regex='(https?|ftp|file)://[-[:alnum:]\+&@#/%?=~_|!:,.;]*[-[:alnum:]\+&@#/%=~_|]'
if [ -n "$1" ]; then
URL="$1"
else
URL=$(xsel -o)