Skip to content

Instantly share code, notes, and snippets.

@yorickdowne
yorickdowne / enable-proposed.sh
Created November 24, 2026 04:08
Shell script to enable the `-proposed` pocket on Ubuntu, for manual installation of packages
#!/usr/bin/env bash
# Enable the Ubuntu -proposed pocket at a low pin priority (default 400), so
# nothing is pulled from it automatically, but packages can be chosen manually:
#
# apt install <pkg>/<codename>-proposed
# apt install -t <codename>-proposed <pkg>
#
# Existing files are never overwritten; if -proposed is already configured,
# that step is skipped.
@yorickdowne
yorickdowne / hier-wir-gehen-wieder.md
Last active November 24, 2026 00:39
Mitigate CVE 2026-99288 in Ubuntu

The "NoisyTCP" bug can crash servers, and mitigation exposes them to SYN floods. Still, that's better than a crash.

If you're on Debian 12 or 13, not Ubuntu, bring in the patched kernel released Nov 13 2026, reboot, do not apply mitigations. Older Debian, upgrade Debian first.

As of Nov 24 2026, Ubuntu have not released a fixed kernel in -proposed. For 26.04, that kernel will be 7.0.0-45. As soon as it lands in -proposed, apply the fixed kernel and remove this mitigation.

Systems behind pfSense/opnSense are protected by default by its "interface scrub". In that case, do not apply this host-level mitigation.

Note these instructions do not carry through a reboot, or a container restart on Docker. I am o

@yorickdowne
yorickdowne / shenanigans.md
Last active November 21, 2026 11:15
Handling multiple EFI partitions during Debian upgrade

The issue

Some custom installations of Debian may have more than one EFI System Partition, ESP. Debian only upgrades the ESP mounted to /boot/efi when switching Debian major versions, which can lead to boot failures. OVH for example deployed Debian on mdadm raid this way, until the 12th of November 2025, when they switched to raid1 ESP for fresh Debian 13 installations.

If yours is a standard Debian install, then you have one ESP and a Debian upgrade will work without issue.

If you or your provider installed Debian with multiple ESPs, read on for a way to handle this.

@yorickdowne
yorickdowne / reinstall-grub.sh
Last active July 2, 2026 05:32
Reinstall Grub to all ESPs on Debian
#!/usr/bin/env bash
# NO WARRANTY, express or implied, for this script. It is risky: A bug in it may keep your system from booting
#
# This script is intended to help me when upgrading Debian on dual-disk OVH baremetal machines with multiple ESPs,
# installed before OVH switched to raid1 ESPs for Debian 13 installs on the 12th of November 2025, see
# https://community.ovhcloud.com/community/en/upcoming-change-efi-system-partition-over-raid1-for-linux-installations?id=community_question&sys_id=8602b59034ac7290f078f43c21c5a60d
#
# Assumptions
# 1) The UUID of the partition that holds /boot/grub is linked in <ESP-partition>/EFI/<bootloader-id>/grub.cfg .
# grub.cfg in EFI is generated only for signed images (shim + grub-efi-$arch-signed), amd64 and arm64 only.
@yorickdowne
yorickdowne / spork.md
Last active November 20, 2026 23:43
Debian 14 forky upgrade

Debian 14 "Forky"

This is a placeholder gist for upgrade to Debian 14 "Forky" in summer 2027. Using it before this release date is risky. Here be dragons.

To start, read the official release notes.

If your system is "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 14 "forky" from Debian 13 "trixie" can be helpful. 3rd-party repos are handled with a find command.

If you are on a fork of Debian such as RasPI OS, use their instructions, not this gist.

@yorickdowne
yorickdowne / resolute.md
Last active October 26, 2026 03:57
Upgrade to Ubuntu Resolute Raccoon

Ubuntu 26.04 "Resolute Raccoon"

To start, read the official release notes.

If your system is "vanilla Ubuntu plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Ubuntu 26.04 "Resolute Raccoon" from Ubuntu 24.04 "Noble Numbat" can be helpful. 3rd-party repos are handled manually.

Note upgrade is only supported from Ubuntu 24.04 or later to Ubuntu 26.04. If you are on Ubuntu 22.04, upgrade to Ubuntu 24.04 first. Then once on Ubuntu 24.04, you can upgrade to Ubuntu 26.04.

From Ubuntu 26.04, you will be able to upgrade to Ubuntu 28.04 from around August 2028.

@yorickdowne
yorickdowne / supergau.md
Last active April 29, 2026 10:32
Holesky Pectra recovery

Holesky has been sunset

As of 2025-10-20, Holesky has been sunset. The replacement testnet is Hoodi.

Historical content below, no longer relevant

Recover Eth Docker Holesky setup

You need:

  • 64 GiB of RAM, or 32 GiB + 32 GiB swap. 16 GiB is unlikely to work
@yorickdowne
yorickdowne / tremor.md
Last active September 5, 2026 20:40
Stabilize an Asus or Intel NUC for 24/7 server operations

The issue

Asus (formerly Intel) NUCs weren't designed for use as a 24/7 server, though they see enthusiastic use as such. Some users report instability. And while some of that can be bad RAM or a faulty motherboard / CPU, some can also just be configuration issues. And some is plain heat.

It's a little tough to nail it down. Here are some good practices to follow, to have a stable NUC.

BIOS update

@yorickdowne
yorickdowne / jammy.md
Last active October 26, 2026 04:01
Upgrade to Ubuntu Jammy Jellyfish

Ubuntu 22.04 "Jammy Jellyfish"

To start, read the official release notes.

If your system is "vanilla Ubuntu plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Ubuntu 22.04 "Jammy Jellyfish" from Ubuntu 20.04 "Focal Fossa" can be helpful. 3rd-party repos are handled with a find command.

Intel NUC 11/12/13 with I225-LM or I225-V Ethernet chip may cause "freezing" of the OS after this update, if wired Ethernet is in use. There are some reports that a BIOS update plus using the hwe kernel can resolve that.

@yorickdowne
yorickdowne / friday.md
Last active November 30, 2026 21:17
Debian 13 trixie upgrade

Debian 13 "Trixie"

To start, read the official release notes.

If your system is "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

If you are on a fork of Debian such as RasPI OS, use their instructions, not this gist.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.