Skip to content

Instantly share code, notes, and snippets.

(async () => {
// 1. Find the grid cells
let cells = document.querySelectorAll('rect'); // Try SVG rects first
if (cells.length === 0) {
cells = document.querySelectorAll('.grid div, [class*="cell"], [class*="Grid"] div');
}
if (cells.length === 0) {
const gridContainer = document.querySelector('main') || document.querySelector('#root') || document.body;
cells = gridContainer.querySelectorAll('div[style*="background"], div[style*="color"]');
}
(function paintPerfectForestEdge() {
// 6-Color Forest Palette
const SKY = 'rgb(13, 17, 23)';
const LGT = 'rgb(57, 211, 83)';
const MID = 'rgb(38, 166, 65)';
const DRK = 'rgb(0, 108, 50)';
const WOD = 'rgb(142, 85, 56)';
const GND = 'rgb(14, 43, 27)';
const forestPattern = [
(function paintPerfectMeadow() {
// 5-Shade Grass Palette + Flower Accents
const SOIL = 'rgb(20, 24, 30)'; // Deep background shadow
const SHAD = 'rgb(14, 68, 41)'; // Deepest grass shade
const BASE = 'rgb(0, 108, 50)'; // Standard mid-tone grass
const LGT = 'rgb(38, 166, 65)'; // Sunlit bright grass
const TIP = 'rgb(57, 211, 83)'; // Glowing neon tips
const FLW = 'rgb(255, 185, 0)'; // Flower center
const PET = 'rgb(255, 90, 120)'; // Flower petals
services:
speed:
container_name: speed
image: openspeedtest/latest
restart: unless-stopped
ports:
- 1028:3000
@sudo-adduser-jordan
sudo-adduser-jordan / network.yaml
Last active April 27, 2026 22:15
network.yaml
services:
atlas:
container_name: network
image: keinstien/atlas:latest
network_mode: host
cap_add:
- NET_RAW
- NET_ADMIN
environment:
- ATLAS_UI_PORT=1024
services:
adblock:
container_name: adblock
image: pihole/pihole:latest
restart: unless-stopped
environment:
- FTLCONF_webserver_port={FTLCONF_WEBSERVER_PORT}
- FTLCONF_WEBSERVER_API_PASSWORD=${FTLCONF_WEBSERVER_API_PASSWORD}
- FTLCONF_dns_listeningMode=ALL
cap_add:
# ------------------------------------------------------------------------------
# SHELL INITIALIZATION
# ------------------------------------------------------------------------------
# Prevent script from running if the shell is not interactive
[[ $- != *i* ]] && return
# ------------------------------------------------------------------------------
# PROMPT CONFIGURATION (PS1)
# ------------------------------------------------------------------------------
@sudo-adduser-jordan
sudo-adduser-jordan / hendricks_formatter.ex
Created February 7, 2026 11:55 — forked from pmarreck/hendricks_formatter.ex
An Elixir formatting module for `mix format` that converts leading spaces to tabs.
defmodule HendricksFormatter do
@moduledoc """
This module is a formatter plugin for Elixir's `mix format` task
that converts leading whitespace to tabs.
It tries to intelligently determine the tab width based on the most common
counts of leading space runs in the file.
It allows additional space characters for minor adjustments that are below the tab width.
OK, why tabs? Why resurrect this age-old nerd debate again?
Very simple: It's an accessibility issue:
https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/
import java.util.logging.*;
public class LogFormatter extends Formatter
{ // a drop in replacement for standard lib logs
public static final String RESET = "\u001b[0m";
public static final String RED = "\u001b[31m";
public static final String YELLOW = "\u001b[33m";
public static final String BLUE = "\u001b[34m";
public static final String GREEN = "\u001b[32m";
@sudo-adduser-jordan
sudo-adduser-jordan / ConsoleColors.java
Created March 14, 2024 15:38
Java Console Colors
public class ConsoleColors {
// Reset
public static final String RESET = "\033[0m"; // Text Reset
// Regular Colors
public static final String BLACK = "\033[0;30m"; // BLACK
public static final String RED = "\033[0;31m"; // RED
public static final String GREEN = "\033[0;32m"; // GREEN
public static final String YELLOW = "\033[0;33m"; // YELLOW
public static final String BLUE = "\033[0;34m"; // BLUE