Skip to content

Instantly share code, notes, and snippets.

View morphismz's full-sized avatar
🤔
thonkin

Raymond Baker morphismz

🤔
thonkin
View GitHub Profile
@morphismz
morphismz / Create a Bootable MacOS Recovery USB with Linux.md
Created May 8, 2025 23:51 — forked from coolaj86/Create a Bootable MacOS Recovery USB with Linux.md
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@morphismz
morphismz / .bash
Last active April 18, 2025 14:52
Install pack with C23
#!/usr/bin/env bash
set -eux
# common functions
function check_installed {
if ! command -v "$1" &>/dev/null; then
echo "Please install $1"
exit 1
@morphismz
morphismz / .idr
Last active March 30, 2025 18:58
Tree search for advent of code day 7 part 1 in idris2
data Tree : Nat -> Type where
Leaf : Tree Z
Branch : Nat -> Tree n -> Tree n -> Tree (S n)
%name Tree lt, rt, t
treeHeight : Tree n -> Nat
treeHeight Leaf = 0
treeHeight (Branch k lt rt) = 1 + treeHeight lt
treeHeightCheck : (t : Tree n) -> treeHeight t = n