Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
@tianon
tianon / etc-apt-sources.list
Last active June 14, 2023 00:05
Perpetually Debian Jessie via NGINX
deb http://example.com/jessie jessie main
deb http://example.com/jessie-security jessie main
deb http://example.com/jessie jessie-updates main
@tianon
tianon / slink
Last active September 8, 2021 15:36
$ debootstrap --arch=i386 slink /tmp/slink http://archive.debian.org/debian /path/to/my/scripts/slink # see also https://github.com/debuerreotype/debuerreotype/pull/125
@tianon
tianon / oci-garbage
Last active December 5, 2024 00:07
A very, *very* basic PoC of using `jq` to manage and manipulate OCI layouts.
#!/usr/bin/env bash
set -Eeuo pipefail
oci="$PWD" # TODO parameter/flag (and pass it around to other oci tools correctly!)
# ~validate $oci is an OCI layout
[ -s "$oci/oci-layout" ]
jq -se 'length == 1 and .[0].imageLayoutVersion == "1.0.0"' "$oci/oci-layout" > /dev/null
# TODO more/better validation? definitely better error handling
@tianon
tianon / emoji.md
Last active March 13, 2025 20:41
testing emoji in headers, especially for TOC generation