Skip to content

Instantly share code, notes, and snippets.

@ravenclaw900
ravenclaw900 / README.md
Created November 1, 2021 01:45
How to upgrade through every version of macOS

How to upgrade through every version of macOS

I was inspired by this YouTube video to try to upgrade through every version of macOS, starting with System Software 1 all the way through macOS 12. I ran into some pitfalls, and decided to document my steps here for anyone else who wants to do this to follow. This guide is intended for running on an actual (Intel) Mac. You need a fairly powerful computer (probably not a MacBook Air), and at least 100GB of free hard drive

Setup

Emulators

To begin, you'll need a few emulators. To be specific, one for the m68k architecture, two for PowerPC, and one for x86_64. I recommend Mini vMac, SheepShaver, QEMU, and VirtualBox, respectively. For QEMU and VirtualBox, look to their respective documentations for instructions on installing them. For Mini vMac and SheepShaver, just download and put them in

@ravenclaw900
ravenclaw900 / wireguardcfg.py
Last active March 5, 2023 16:00
A Python script that will install and configure WireGuard.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from subprocess import check_output, run
from time import sleep
from os.path import exists
from os import listdir, linesep
try:
if not "root" in str(check_output("whoami")):
@ravenclaw900
ravenclaw900 / rss2js.py
Last active August 12, 2020 15:37
A Python script to convert a JWPlayer RSS file to a videojs-playlist file
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
filename = input("What is the file name (no extension)? ")
old = open(filename + '.rss', 'r')
new = open(filename + '.js', 'w')
lc = sum(1 for line in old if line.strip())
new.write("var player = videojs('video');\n\n")
new.write("player.playlist([\n")
@ravenclaw900
ravenclaw900 / build-dtx.yml
Last active May 30, 2020 23:16
A YAML Github Actions file to build a dtx file from various other files
# Build a .dtx file from the contents of the existing files
name: Build DTX File
# Controls when the action will run. Triggers the workflow on push events on the develop branch
on:
push:
branches: [ develop ]
jobs: