Skip to content

Instantly share code, notes, and snippets.

@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]];
@Wowfunhappy
Wowfunhappy / gist:0e21294a528c370120060e1115dd581f
Created March 13, 2025 14:24
Add ISRG Root X1 certificate to legacy macOS
# One-line Terminal command to add the ISRG Root X1 certificate to old versions of macOS / OS X.
# Run this command while connected to the internet via a trustworthy source.
# An example of a trustworthy source would (probably) be a password-protected home WiFi network.
# An example of an untrustedworthy source would be the public WiFi at your local coffee shop.
curl 'http://x1.i.lencr.org' > /tmp/ISRGRootX1.pem && sudo security -v add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/ISRGRootX1.pem
@Wowfunhappy
Wowfunhappy / Redirect.md
Last active April 23, 2026 13:37
Download a Mac OS X 10.9 Mavericks installer image Apple

The Mac OS X 10.9 Mavericks download script is now hosted on Mavericks Forever. To download Mavericks, open a Terminal on any Mac and run:

curl mavericksforever.com/get.sh | sh

Or, navigate directly to mavericksforever.com/get.sh to read what the script does.

@Wowfunhappy
Wowfunhappy / main.m
Last active February 19, 2026 17:50
Firefox Key Equivalent Fixer
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import "ZKSwizzle.h"
@interface myNSApplication : NSApplication
@end
@Wowfunhappy
Wowfunhappy / gist:ab459b4bf7c070f31300894c42c427a4
Last active May 27, 2024 16:26
Build Ship of Harkinian for Mac OS X 10.9
Last used with this commit: https://github.com/HarbourMasters/Shipwright/commit/ad0e17383e72c652541e6a90367ab720c6a18723
1. sudo port install libsdl2 libpng glew ninja cmake libzip nlohmann-json boost legacy-support clang-17 macports-libcxx tinyxml2
2. git clone --recursive https://github.com/HarbourMasters/Shipwright.git