Skip to content

Instantly share code, notes, and snippets.

View PierceLBrooks's full-sized avatar
🇵🇸

Pierce Brooks PierceLBrooks

🇵🇸
View GitHub Profile
# 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
@PierceLBrooks
PierceLBrooks / jsonprettify.py
Created July 14, 2025 18:07
jsonprettify.py
# Author: Pierce Brooks
import os
import sys
import json
import shutil
import logging
import traceback
import subprocess
@PierceLBrooks
PierceLBrooks / exifsplit.py
Created July 14, 2025 17:11
exifsplit.py
# Author: Pierce Brooks
import os
import shutil
import subprocess
for root, folders, files in os.walk(os.getcwd()):
for name in files:
path = os.path.join(root, name)
# Author: Pierce Brooks
import os
import sys
import shutil
import hashlib
import logging
import traceback