Skip to content

Instantly share code, notes, and snippets.

@adamamyl
adamamyl / macos26-breaks-custom-dns.md
Last active April 15, 2026 20:15
Bug Report: macOS 26 breaks /etc/resolver/ supplemental DNS for custom TLDs

Ah, the joys of waking up to find the Mac's done an overnight upgrade… and erm, suddenly things stop working. Thankfully, me and Claude managed to work out what the fuck is going on… I'm sharing here, as well as having raised in on https://feedbackassistant.apple.com/feedback/22280434 (that seems to need a login?).

Bug Report: macOS 26 breaks /etc/resolver/ supplemental DNS for custom TLDs

Product: macOS 26.3.1 (Darwin 25.3.0, Build 25D771280a) Component: Networking → DNS / mDNSResponder Regression from: macOS 25.x 26.3.0 (working immediately prior to overnight update)


@adamamyl
adamamyl / pre-demo-requirements.md
Last active October 29, 2025 14:08
pre-demo-requirements

Background

[ <company> ] is in the [ <sector> ] business.

It's got [ <#> ] people across [ <#> ] countries and follows [ (ISO 27001, NIST CSF, NIST AI RMF, FCA Requirements, PCI-DSS…) ].

We are cloud-native. Our IdP is Okta, and solutions must work with that.

Business problem

We've identified that we need tooling to help with [ <problem> ]. You are on our shortlist of suppliers that may be able to help us.

@adamamyl
adamamyl / recursively-bulk-dasel.sh
Created July 6, 2023 13:34
One-liner to recursively convert json to csv
# `brew install dasel` if needed…
find . -name "*.json" -type f -exec bash -c 'dasel -r json -w csv < "$0" > "${0%json}csv"' {} \;
# and to purge the jsons…
#find . -name "*.json" -type f -delete
@adamamyl
adamamyl / samba_backup.sh
Created November 5, 2018 10:43 — forked from muyesh/samba_backup.sh
samba_backup script for Ubuntu 14.04
#!/bin/sh
#
# Copyright (C) Matthieu Patou <mat@matws.net> 2010-2011
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@adamamyl
adamamyl / float-ledger-watermark-checker.sh
Last active September 18, 2018 19:34
A dirty bash script to check the levels of a ledger with watermark; see the help guide on guides.railsbank.com for more context.
#! /usr/local/bin/bash
set -e
# set this to be your ledger's ledger_id
floatledgerid=some-ledger-uuid
# this is perhaps a little more than needed,
# but we use Keychain Access for our API Keys — it
# has a simple interface that works in scripts
if [[ "$OSTYPE" == "darwin"* ]]; then
@adamamyl
adamamyl / -
Created January 10, 2018 15:51
#!/bin/bash
#
# keychain-search:
set -e
if [ -z $1 ]; then
echo "Specify thing to look for as argument"
echo "Maybe you want one of:
adam-stage-play adam-beta-play adam-play
@adamamyl
adamamyl / utfmb64.conf
Created September 11, 2017 16:20
utf8 for mysql
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
May-06 20
Jun-06 18
Jul-06 9
Aug-06 28
Sep-06 43
Oct-06 14
Nov-06 22
Dec-06 14
Jan-07 29
Feb-07 39