Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / plugin.cfg
Created November 1, 2025 22:24
PolyTools
[plugin]
name="PolyTools"
description="Adds tools to the inspector to make editing a Polygon2d a little easier."
author="CodeZombie"
version="1.0"
script="polytools_plugin.gd"
@CodeZombie
CodeZombie / delay.py
Last active October 28, 2025 02:25
ComfyUI Delay Node
import time
class DELAY:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
@CodeZombie
CodeZombie / pastetype.sh
Last active October 27, 2025 22:45
pastetype
#!/bin/bash
# 1. Start ydotoold in the background
# The '&' runs the command as a background job
ydotoold &
# 2. Save the Process ID (PID) of the background process
# '$!' is a special variable that holds the PID of the last backgrounded process
YDOTOOLD_PID=$!
@CodeZombie
CodeZombie / gegl.py
Created October 24, 2025 17:13
ComfyUI Gimp GEGL node
from PIL import Image
import torch
import numpy as np
import tempfile
import subprocess
import time
# NOTE: Ensure this is actually removing temp files.
# NOTE: Check to see if this works on linux.
@CodeZombie
CodeZombie / cutout_mask.py
Created October 24, 2025 17:08
ComfyUI "Cut Out Mask" node
from PIL import Image, ImageChops
import torch
import numpy as np
# TODO: Mask should be a MASK type, not IMAGE. Fix this.
# TODO: This doens't handle transparency nicely. If a mask has grey area, it will add darkness to the output transparent image. Fix that.
class CutMask:
def __init__(self):
pass
@CodeZombie
CodeZombie / search.py
Created October 23, 2025 05:10
gmc archive searcher
import os
import threading
import shutil
from collections import namedtuple
ThreadWithData = namedtuple('thread', 'thread, filecount')
# Constants
MAX_THREADS = 12
FILES_PER_THREAD = 500
@CodeZombie
CodeZombie / dialogue.tmLanguage.json
Created October 7, 2025 01:55
Godot Dialogue Manager VSCode Syntax Highlighting
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Dialogue",
"scopeName": "text.dialogue",
"patterns": [
{ "include": "#comment" },
{ "include": "#title" },
{ "include": "#import" },
{ "include": "#using" },
{ "include": "#conditional" },
@CodeZombie
CodeZombie / guide.md
Last active September 4, 2025 16:40
The Cheap-Ass Ipod 5h gen SD Card Mod

TL;DR: You can use a very cheap ZIF to Micro SD adapter on a 5th (and probably others) gen iPod, and with some thin paper/tape and some good timing, you too can have a budget solid state storage upgrade.

Preamble

I only ever buy pretty out of date phones. My latest purchase, the Google Pixel 6, has introduced me to the wonderful world of not having 3.5mm headphone jacks on anything, and I have to say:

I hate it.

I realize I'm late to the party here, but I don't know how you fucking people have been suffering like this for so long.

@CodeZombie
CodeZombie / uid_conflict_fix.py
Last active September 14, 2025 16:11
Godot UID conflict fixer
import os
import re
import argparse
import random
import string
def generate_new_uid(all_known_uids_set):
"""
Generates a new unique Godot-like UID (uid:// followed by 12 lowercase alphanumeric chars).
@CodeZombie
CodeZombie / comfy_prompt_extractor.py
Created April 18, 2025 22:07
ComfyUI Image prompt extractor
import sys
import json
from PIL import Image
# qt
from PyQt5.QtWidgets import QApplication, QMessageBox, QWidget, QTextEdit, QVBoxLayout, QLabel
from PyQt5.QtGui import QIcon, QFont
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QSizePolicy