Skip to content

Instantly share code, notes, and snippets.

View hbokh's full-sized avatar
🔪
Yak shaving

Henk hbokh

🔪
Yak shaving
  • 🇪🇺 🇳🇱
  • 08:34 (UTC +01:00)
View GitHub Profile
@pdfux
pdfux / TahoeCombined_v2.md
Last active November 8, 2026 20:35
Enable the dynamic Tahoe and Golden Gate landscape wallpapers

Enable the dynamic Tahoe and Golden Gate landscape wallpapers

image  image

Apple is working on a Solar wallpaper engine for macOS 27 that groups aerial Landscape wallpapers and automatically switches variants based on the sun's position during the day.

When properly configured, the four Tahoe and Golden Gate landscape wallpapers appear under one entry each in Settings, and a new Automatic display option appears. Here's how to enable it.

@adamamyl
adamamyl / macos26-breaks-custom-dns.md
Last active October 31, 2026 21:45
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)


@scriptingosx
scriptingosx / setComputerName.sh
Created May 23, 2024 05:47
Sample script to set the computer name according to my 2024 MacAD.UK presentation: https://scriptingosx.com/macaduk2024
#!/bin/bash
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
####################################################################################################
# License information
####################################################################################################
#
# Copyright (c) 2024, JAMF Software, LLC. All rights reserved.
#
@beauwilliams
beauwilliams / Vagrant-M1-Install.bash
Last active June 6, 2026 15:58
Run x86 VM's on Mac M1 arm using vagrant with qemu hypervisor
brew install vagrant qemu
#Due to dependency errors, we must install vbguest first..
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-qemu
#cd to working dir you like to keep your vagrant files
cd ~/VM-and-containers/VagrantMachines/M1-vagrantfiles/ubuntu18-generic-64/
#Create a vagrant file
$EDITOR Vagrantfile
@tomwalsh
tomwalsh / preseed.cfg
Last active April 21, 2024 22:21
Debian Installer/preseed Partman Setup for RAID and LVM
# Force the system to unmount any previously found file systems
d-i preseed/early_command string umount /media || true
# We are using RAID as our method - This is important
d-i partman-auto/method string raid
# Define which disks we want to use in our RAID configuration
d-i partman-auto/disk string /dev/sda /dev/sdb
# Remove any previous LVM metadata
d-i partman-lvm/device_remove_lvm boolean true
# Remove any previous MD metadata
d-i partman-md/device_remove_md boolean true
@m-radzikowski
m-radzikowski / script-template.sh
Last active September 8, 2026 18:28
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
variable "hcloud_token" {
}
provider "hcloud" {
token = "${var.hcloud_token}"
}
resource "hcloud_server" "kube-master" {
name = "kube-master"
image = "ubuntu-18.04"
@mika
mika / gist:c2a0df79f9fcf59c96f99adb9d3eac83
Created August 11, 2017 08:14 — forked from benwalton/gist:1777718
Clean up emails in the queue. usage ./postfix-delete.pl email@example.com
#!/usr/bin/perl
$REGEXP = shift || die "no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!";
@data = qx</usr/sbin/postqueue -p>;
for (@data) {
if (/^(\w+)(\*|\!)?\s/) {
$queue_id = $1;
}
if($queue_id) {
@brianshumate
brianshumate / docker-macos-terraform.md
Last active May 30, 2025 12:21
The Simplest Terraform with Docker on macOS

If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

@ashald
ashald / ghost.tf
Created March 16, 2017 03:59
Ghost in the Container
variable "socket" {}
variable "BLOG_HOST" {}
variable "EMAIL_LETSENCRYPT" {}
variable "DOCKER_PREFIX" { default = "ghost" }
variable "image_letsencrypt" { default = "jrcs/letsencrypt-nginx-proxy-companion:v1.4" }
variable "image_nginx_proxy" { default = "jwilder/nginx-proxy:alpine" }
variable "image_ghost" { default = "ashald/alpine-ghost:hydrogen" }