Skip to content

Instantly share code, notes, and snippets.

@Wowfunhappy
Wowfunhappy / depth-order.html
Created September 20, 2026 15:02
WebKit Depth Order Test
<!doctype html>
<meta charset="utf-8">
<title>CSS 3D: non-intersecting depth order</title>
<style>
#scene {
position: relative;
width: 240px;
height: 180px;
margin: 40px;
transform-style: preserve-3d;
@Wowfunhappy
Wowfunhappy / codex-session-01a08166-1442-7801-be32-a414f2828143.md
Created September 8, 2026 15:00
Codex Analysis of Chromium Legacy #44 (the XNU kernel panic)

Codex conversation

User

Read this Github issue for Chromium Legacy, a fork of the Chromium app which was backported to legacy versions of Mac OS X. You must read the entire conversation without skipping anything. You should probably use the gh command line tool. blueboxd/chromium-legacy#44

The actual root cause of the problem was never found. What do you think was actually happening? Provide a detailed analysis. The Chromium Legacy and XNU source code are included in this directory for reference if needed.

Assistant

@Wowfunhappy
Wowfunhappy / claude-code-enter-newline
Created July 23, 2026 02:45
Claude Code: Enter creates newlines instead of submitting your message
// Claude Code: tap Enter for a newline, Option+Enter for submit.
//
// Tap Enter -> insert a newline
// Option+Enter -> submit (convenient locally)
//
// Alternately, you can also hold enter to submit. Does not work in /tui fullscreen.
//
// Usage — Claude Code is a Bun-compiled binary, so it honors Bun's --preload:
//
// BUN_OPTIONS="--preload=/path/to/claude-code-enter-newline.js" claude
@Wowfunhappy
Wowfunhappy / Add to OSKextSigExceptionList
Created June 14, 2026 15:45
Add an unsigned kext to the exclusion list on Mavericks.
# To my knowledge, this is the only way to get an unsigned kext to load from /Library/Extensions on OS X 10.9 Mavericks.
# It does require editing a file on /System, but I still consider it the least-bad option.
defaults write /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist OSKextSigExceptionList -dict-add "com.foo.bar" "1.0"
# Defaults write may convert property list to a binary format, which IOFCUnserialize (?) apparently can't read.
plutil -convert xml1 /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist
# Fix permissions
chmod 644 /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist
@Wowfunhappy
Wowfunhappy / IONVMeFamily.kext.tar.gz.base64.txt
Last active May 9, 2026 22:56
I asked Claude how difficult it would be to get NVME SSDs working on Mavericks. After inspecting a Yosemite installer, Claude enthusiastically announced that this woud be trivial; the Yosemite kext could be easily patched to work on Mavericks. This is currently 100% untested, as I need to acquire an NVME SSD.
H4sIALAf/2kAA+y9CXhURdYw3J09bDcoYFSUgEGDC6RFlojRXOiG29KBKIs4CoIkSEY2k27ABU2m
E8P12hIHHZj3dWHGccTRGXFwCGvSTSAJymhABkEUAzrYsVXAJezp/5xTdZfeAjrzzf98zzd5xO6+
VXWq6tSpOkudc659/LjJ+UWjZ8wtnvPwwAeLFjsHmf7tf9nZ2cOGDMmgz6HsE/7UT/bDMsQybNhQ
y41Db7JkZMOPmyymjCH//qFE/rlKnTNKYCi3z583wzl7xrxY9RbNLiqa0wGc0Ell/PsH+n/mzx6x
/qPmz3MWzXOW/vsI4aev/9Bhg4f+d/3/E38drP99o+YXFk0ofgDw4iop+hfI4Sev/42WoYP/u///
I38drL993qz5AxfMKS51/ot9AD6G3nRTzPUfctPQYWHrnz3sxhtNGdn/lhme5+//8fW/5bbFc+dk
LCwqKS2ePy+3n2Vgdr+Monkz5xcWz3sgt9+kiaNvGN7vtls73dLXOn7UxLsLbBlEEBkFk0Y67KMy
+t0waJC4YMGcokGDrBOtGQUO+4SJGQBj0CDbuH4Z/WY7nQtuHjRo0aJFA2dgrYEz58/FiqWDCkrm
LygqcT7sAGA3QIOBhc7CftANgx4yHHhaWDzTeWun1FseLHr41pGu4jmF+TNmzi6eVzR+Av26ZRAW
QHmpswSGfavlptGWYbcM4r94u1GjR7rmFc4pshYtLJozf8FcIPE7ix6AXsJb2+Y9AIOYHau9bXHR
@Wowfunhappy
Wowfunhappy / json_converter.rb
Created April 1, 2026 00:09
tmlanguage JSON Converter
#!/usr/bin/env ruby
# encoding: utf-8
#
# JSON tmLanguage Converter
# Compatible with Ruby 1.8+
#
# Usage: ruby json_converter.rb <file.tmLanguage.json> [output.tmLanguage]
# ruby json_converter.rb <directory>
#
# Converts VS Code-style .tmLanguage.json files to TextMate .tmLanguage
@Wowfunhappy
Wowfunhappy / setup_thonny.py
Last active October 29, 2025 12:16
Setup Thonny on OS X 10.9. Run from a Python 3.10 virtual environment created with --system-site-packages.
"""
Complete Thonny setup script for Tk 8.5 compatibility
- Installs/reinstalls Thonny
- Converts PNG images to GIF with transparency
- Patches code for compatibility and updates all PNG references to GIF
(Script written by Claude 3.5 Sonnet)
"""
import sys
import subprocess
@Wowfunhappy
Wowfunhappy / macports-libcxx-llvm18.patch
Created August 22, 2025 18:17
macports-libcxx + llvm 18 (on Mavericks)
# Updates macports-libcxx to to support C++20.
diff --git a/lang/macports-libcxx/Portfile b/lang/macports-libcxx/Portfile
index 2648853..f152a2a 100644
--- a/lang/macports-libcxx/Portfile
+++ b/lang/macports-libcxx/Portfile
@@ -16,10 +16,10 @@ long_description This port installs a recent libc++ from llvm \
# for now, we will leverage the already-built libc++ in the appropriate clang port
# later, we can build this independently if we choose to do so, much like libtapi
@Wowfunhappy
Wowfunhappy / mavericks_help_downloader
Last active June 27, 2025 16:40
Download OS X Mavericks Help Viewer Content
#!/usr/bin/env python3
"""
This script downloads and saves an offline copy of any Mavericks (10.9) Apple Help documentation.
It creates a directory structure identical to the original help system.
"""
import os
import re
import json
import requests
@Wowfunhappy
Wowfunhappy / main.m
Created April 28, 2025 21:40
Reveal Current Desktop Picture In Finder
// Build with compiler flag `-lsqlite3`.
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <sqlite3.h>
NSString *getDesktopImagePath() {
NSFileManager *fileManager = [NSFileManager defaultManager];
NSURL *imageURL = [[NSWorkspace sharedWorkspace] desktopImageURLForScreen:[NSScreen mainScreen]];