Skip to content

Instantly share code, notes, and snippets.

View PierceLBrooks's full-sized avatar
🇵🇸

Pierce Brooks PierceLBrooks

🇵🇸
View GitHub Profile
@PierceLBrooks
PierceLBrooks / jsondiff.py
Created August 5, 2026 04:45
jsondiff.py
# Author: Pierce Brooks
import os
import sys
import json
import logging
import traceback
def visit(tier, parents, left, right):
@PierceLBrooks
PierceLBrooks / jsonsort.py
Created August 5, 2026 04:02
jsonsort.py
# Author: Pierce Brooks
import os
import sys
import copy
import json
import logging
import functools
import traceback
import argparse
import asyncio
import json
import logging
import re
import ssl
import sys
from dataclasses import dataclass, field
from typing import List, Optional, Callable, Coroutine, Any
# Author: Pierce Brooks
# python3 -d $PWD/wftwister.py $PWD/snd.wav "(math.cos(x)*2.0)-1.0" 0.5 0.25
import sys
import copy
import math
import wave
import struct
# Author: Pierce Brooks
import pyperclip
import sys
handle = open(sys.argv[1], "rb")
data = handle.read()
handle.close()
content = ""
for i in range(len(data)):
# Author: Pierce Brooks
import os
import ast
import sys
import functools
class ListVisitor(ast.NodeVisitor):
def __init__(self):
# Author: Pierce Brooks
import os
import sys
import copy
import json
import platform
import subprocess
@PierceLBrooks
PierceLBrooks / b64mime.py
Created October 10, 2025 02:26
python3 -d $PWD/b64mime.py "data:text/html;base64,PGh0bWw+PGhlYWQ+PHRpdGxlPmZvb2JhcjwvdGl0bGU+PC9oZWFkPjxib2R5PkhlbGxvLCB3b3JsZCE8L2JvZHk+PC9odG1sPg=="
# Author: Pierce Brooks
import os
import sys
import base64
import mimetypes
if (len(sys.argv) < 2):
sys.exit(-1)
/* This version of ObjImporter first reads through the entire file, getting a count of how large
* the final arrays will be, and then uses standard arrays for everything (as opposed to ArrayLists
* or any other fancy things).
*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
import os
import sys
import json
import shutil
import mimetypes
import subprocess
import logging
import traceback