Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / instructions.md
Last active January 10, 2026 07:11
[Linux] ESP-IDF devcontainer setup.

Hello!

I'm going to walk you through setting up the ESP-IDF inside of VSCode with Devcontainers.

This worked for me with the immutable fedora-based distro Aurora, though the steps should be similar for any distro.

For non-immutable (mutable?) linux distros you don't have to install the base ESP-IDF in a devcontainer, though I would still recommend it.

Installing the prerequisites

  1. Install VSCode. In Aurora this is easy, just enable dev mode: ujust devmode.
@CodeZombie
CodeZombie / esp-idf-fix.md
Last active January 2, 2026 01:07
esp-idf in a Dev Container on Immutable Fedora

Steps to fix the "spawn udevadm ENOENT" error inside the ESP-IDF dev container.

  1. Launch the dev container in vscode and open a terminal.
  2. Open a terminal. Confirm that you're in the remote devcontainer terminal, and not on your host system.
  3. apt-get update
  4. apt-get install udev
  5. Now in your devcontainer.json file, add this to the end of the dict:
  "runArgs": [
    "--device=/dev/ttyACM0",
 "--privileged"
@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.