Skip to content

Instantly share code, notes, and snippets.

@maxammann
maxammann / viewing_copy.md
Created March 19, 2026 22:25 — forked from namazso/viewing_copy.md
Your Archival Copy is Not Your Viewing Copy

Your Archival Copy is Not Your Viewing Copy

Technical explanation of display compatibility challenges when viewing analog-sourced video content on digital displays.

Introduction

Standard Definition video content is predominantly formatted for analog CRT display systems. This applies to analog storage formats (VHS, LaserDisc, etc.) as well as many digital media formats (DVD-Video). Individuals new to video archival often attempt to create a single copy that serves both as an authentic archival master and as a readily viewable file. This approach typically fails to achieve either objective effectively. This document explains the technical rationale for maintaining separate archival and viewing copies.

This document focuses primarily on 50/59.94 Hz native video content, including home video and other non-broadcast productions. If the steps are followed correctly, it is possible to create a "viewing copy" of the media that has viewing experience close to original, but consistent and compatible playback o

@maxammann
maxammann / http-toolkit-export.js
Created March 19, 2026 22:17 — forked from DavraYoung/http-toolkit-export.js
Export all intercepted HTTP exchanges from HTTP Toolkit to JSON
/**
* HTTP Toolkit Export Script
* Exports all intercepted HTTP exchanges to JSON
*
* Usage: Paste this entire script into Chrome DevTools console while HTTP Toolkit is open
*
* Tested with: HTTP Toolkit Desktop (2024-2025 versions)
* GitHub: https://github.com/httptoolkit/httptoolkit-ui
*/
(function() {
@maxammann
maxammann / Dockerfile
Created February 15, 2026 10:17
Dockerfile for QTGMC
FROM archlinux:latest
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
TERM=xterm
# Update and install base development tools and required packages
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
base-devel \
@maxammann
maxammann / run.sh
Last active January 19, 2026 14:32
Github Auth
#!/usr/bin/env bash
inspect_key() {
k="$1"
[ -f "$k" ] || { echo "KEY_FILE_STATUS=missing"; return; }
hdr="$(head -n 1 "$k" 2>/dev/null || true)"
# OpenSSH new-format

Creating image files for the Update Software feature in the Zyxel PMG3000-D20B web interface

image

Create flash dump of mtd2 or mtd3 (Image A / Image B):

dd if=/dev/mtd2 of=/tmp/mtd2

Download flash dump from SFP (e. g. using TFTP).

@maxammann
maxammann / keytest.py
Created October 21, 2023 14:57 — forked from xobs/keytest.py
Fomu keyboard test
import time
import microcontroller
import digitalio
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keycode import Keycode
# A simple neat keyboard demo in CircuitPython
curl "https://raw.githubusercontent.com/zerforschung/schnelltesttest.de/main/src/data/all.json" | \
jq '.tests | to_entries | map(.value)
| sort_by(.sensitivity_total)[]
| select(.omicron_bridging)
| "\(.manufacturer) \(.test_name) (Sensitivity: \(.sensitivity_total))"'
@maxammann
maxammann / index.html
Created January 6, 2022 14:09
Generate QR-codes and embed them in PDFs
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.0/jspdf.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@zxing/library@0.18.6/umd/index.min.js"></script>
</head>
</html>
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
Future<void> a = test();
Future<void> b = test1();
}
void test() async {
@maxammann
maxammann / globalmaptiles.py
Created December 1, 2021 18:22 — forked from maptiler/globalmaptiles.py
globalmaptiles.py
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/