Skip to content

Instantly share code, notes, and snippets.

View dwoffinden's full-sized avatar
😄

Daniel Woffinden dwoffinden

😄
View GitHub Profile

nixos-anywhere on an Oracle Cloud VM.Standard.E2.1.Micro

Oracle Cloud's Always Free 'VM.Standard.E2.1.Micro' (x86_64) shape has 1 GB of RAM (~951 MiB usable) and a 50 GB (46.6 GiB) boot volume. Running nixos-anywhere and disko from OCI's stock Ubuntu 26.04 LTS image immediately OOMs when it gets to kexec:

  • Ubuntu's Linux 7.0 kernel reserves ~672 MiB for Kexec Handover (kho=off): Oracle's 7.0.0-*-oracle Ubuntu kernel sets
@dwoffinden
dwoffinden / !endscope.md
Last active November 29, 2026 21:57 — forked from RaphaelWimmer/endscopetool.py
Python implementation of the endscopetool (sic!) Android application used for the Vitcoco ear wax remover camera. Full repo: https://github.com/dwoffinden/endscopetool

Endscope (sic)

Desktop viewer for the Vitcoco Wi-Fi endoscope / ear-cleaning camera, replacing the endscopetool Android app.

Usage

  1. Turn on the device and connect to its softish-XXXX Wi-Fi network.
  2. Run the viewer:
@dwoffinden
dwoffinden / doh-server.nix
Last active October 19, 2024 04:52
Ad-blocking DNS-over-TLS/HTTPS server w/ NixOS & Knot Resolver. Pi-hole alternative.
# Copyright 2020 Google LLC.
# SPDX-License-Identifier: Apache-2.0
{ config, pkgs, ... }:
let
# https://github.com/StevenBlack/hosts/issues/451
# https://github.com/ScriptTiger/Hosts-Conversions
# https://github.com/ScriptTiger/scripttiger.github.io
# https://scripttiger.github.io/alts/
adblockLocalZones = pkgs.stdenv.mkDerivation {
name = "adblock-rpz";

Keybase proof

I hereby claim:

  • I am dwoffinden on github.
  • I am dwoffinden (https://keybase.io/dwoffinden) on keybase.
  • I have a public key whose fingerprint is 46FC 889E BC38 100E 51E8 3245 F3EA 503B 360F BD40

To claim this, I am signing this object: