Skip to content

Instantly share code, notes, and snippets.

@jojo141185
jojo141185 / compare-dns-resolution.sh
Last active May 6, 2025 20:25
This script reproduces and compares DNS resolution behavior in Debian (glibc) vs Alpine (musl) running in host network mode. It tests Python getaddrinfo() and FFmpeg name resolution against a configurable Jellyfin stream URL, and cleans up all test containers on exit.
#!/usr/bin/env bash
# compare-dns-resolution.sh
# This script reproduces and compares DNS resolution behavior in Debian (glibc) vs Alpine (musl)
# running in host network mode. It tests Python getaddrinfo() and FFmpeg name resolution
# against a configurable Jellyfin stream URL, and cleans up all test containers on exit.
set -euo pipefail
# --- Configuration ---
JELLYFIN_STREAM_URL="${JELLYFIN_STREAM_URL:-http://jellyfin.myserver.example.lan/stream}"
@jojo141185
jojo141185 / gist:1a7bc1f9359056eae4d1c53ed6535434
Last active January 31, 2021 17:48
Venetian Cover Control
substitutions:
device_name: rolladen_wohnzimmer_links
device_position: links
device_location: Wohnzimmer
friendlyname: "Rolladen ${device_location} ${device_position}"
open_duration_s: '59'
open_switch: switch2
open_relay: relay2
close_duration_s: '60'
close_switch: switch1