This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Download script written by Wowfunhappy. Last updated 2025/06/15. | |
# Thank you to Krackers, Jazzzny, and others for helping analyze Apple's download process and debug this script. | |
# Thank you to dosdude1 for donating identifiers from a broken Mac. | |
# Any mistakes are mine alone. | |
# Helper functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <AppKit/AppKit.h> | |
#import "ZKSwizzle.h" | |
@interface myNSApplication : NSApplication | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input = open("input.txt") | |
rucksacks = input.readlines() | |
commonItems = [] | |
def findCommonItem(compartmentA, compartmentB): | |
for i in range(0, len(compartmentA)): | |
for j in range(0, len(compartmentB)): | |
if (compartmentA[i] == compartmentB[j]): | |
return compartmentA[i] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import random | |
import time | |
import re | |
MAX_EXPONENT = 5 | |
solutionList = [] | |
#Based on https://theconfused.me/blog/solving-the-24-game/ | |
def solve(numbers, expr=[]): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIdentifier</key> | |
<string>wowfunhappy.$(PRODUCT_NAME:rfc1034identifier)</string> |
NewerOlder