Skip to content

Instantly share code, notes, and snippets.

View PierceLBrooks's full-sized avatar
🇵🇸

Pierce Brooks PierceLBrooks

🇵🇸
View GitHub Profile
# 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
@PierceLBrooks
PierceLBrooks / ffmpeg_with_srt.sh
Last active June 30, 2025 00:18 — forked from maheshgawali/ffmpeg_with_srt.sh
build ffmpeg with libsrt libx264 libx265 libaom libvpx libopus libfdk-aac
# combination of steps from
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
# and
# https://seanthegeek.net/455/how-to-compile-and-install-ffmpeg-4-0-on-debian-ubuntu/
response=
echo -n "Do you want to compile the optional libpulse as well (yes/no) > "
read response