Skip to content

Instantly share code, notes, and snippets.

@tcoliver
tcoliver / Big Sur-compatible Macs (regex).txt
Last active November 2, 2021 14:33 — forked from talkingmoose/Big Sur-compatible Macs (regex)
Regex looks for all Mac models compatible with macOS Big Sur. May not be up-to-date with newly released models.
Model information: https://support.apple.com/en-us/HT211238
Published Date: November 17, 2020
Updated Date: November 2, 2021
https://regex101.com/r/alMWHp/4
Match major identifier — Matches major model identifier numbers based on Apple's knowledge base article (more accurate):
(MacBook(10|9|8)|MacBookAir(10|[6-9])|MacBookPro1[1-8]|Macmini[7-9]|MacPro[6-7]|iMacPro1),\d|iMac(14,4|1[5-9],\d|2[0-1],\d)
@tcoliver
tcoliver / Catalina-compatible Macs (regex)
Last active November 1, 2021 19:27 — forked from talkingmoose/Catalina-compatible Macs (regex)
Regex looks for all Mac models compatible with Catalina. May not be up-to-date with newly released models.
Model information: https://support.apple.com/en-us/HT210222
Published Date: February 01, 2021
Updated Date: November 01, 2021
Validation: https://regex101.com/r/al8u1R/1
This regex is exact. No new models are supported.
(MacBookAir(10|[5-9])|MacBookPro(9|1[0-8])|MacPro[6-7]|iMac(Pro1|1[3-9]|2[0-1])|MacBook(10|9|8)|Macmini[6-9]),\d
@tcoliver
tcoliver / usaa2ynab.py
Created May 28, 2020 15:33
Simple script for converting a transaction CSV exported from USAA into a YNAB import compatible format.
import argparse
import csv
import pathlib
parser = argparse.ArgumentParser()
parser.add_argument("infile", type=str, help="CSV file exported from USAA's web portal")
parser.add_argument(
"outfile",
nargs="?",
type=str,
@tcoliver
tcoliver / TeamDynamix Desktop AutoRefresh.js
Last active March 5, 2020 13:42
A simple Tampermonkey script for adding auto-refresh to a TeamDynamix Desktop. This script refreshes each modules individually, so the page does not need to be reloaded. In order to use, install the Tampermonkey extension from https://tampermonkey.net/ and import the script.
// ==UserScript==
// @name TeamDynamix Desktop AutoRefresh
// @namespace https://www.teamdynamix.com/
// @version 1.0.1
// @description Refresh TDX desktop modules without reloading the page.
// @author tcoliver
// @match */TDNext/Home/Desktop/Default.aspx*
// @grant none
// ==/UserScript==