Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / censor.py
Created September 27, 2026 02:48
Censor Profanity and Swearing in .epub files
#!/usr/bin/env python3
# Example usage:
#
# python censor.py book-with-profanity.epub book-censored.epub
#
import re
import sys
import zipfile
from collections import Counter
@peteristhegreat
peteristhegreat / blender-shader-cheatsheet.html
Created September 25, 2026 12:30
Blender shader node cheatsheet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Blender Shader Node Cheatsheet</title>
<style>
:root{
--bg:#232629; --panel:#2b2f33; --panel2:#26292c; --ink:#e8e6e1; --sub:#9aa0a6; --line:#3a3f44;
--input:#5b8fd6; --output:#e0554f; --shader:#e0a83e; --texture:#d968a6; --color:#8b6fe0;
@peteristhegreat
peteristhegreat / cat-and-mouse-browser-control-privacy-policy.md
Created September 12, 2026 11:40
Cat and Mouse Browser Control, Chrome Extension, Privacy Policy

Cat and Mouse Browser Control Privacy Policy

Effective date: 12 Sept 2026

Developer: Post Meridian, LLC ("we," "us," or "the developer")

Summary

Cat and Mouse Browser Control is a browser extension used with the locally

@peteristhegreat
peteristhegreat / lazy-susan.md
Last active August 13, 2026 21:33
Large Dining Room Table Lazy Susan

I had some leftover 1.5 inch hardwood laminate butcher block countertop.

I had one big piece that could fit a 20" diameter circle to be cut out of it.

I had another piece that a 13" diameter could come out of it.

I ordered a "Lazy Susan Bearing 18 Inch - Heavy Duty Lazy Susan Base & Hardware, Silent Turntable for Smooth Rotation (Aluminum Alloy, 380LB Capacity, Base Only)" for ~$60. I could have gotten the same size, but cheaper hardware for ~$40 that supports up to 265lbs aka the "Heavy Duty" model instead of "Commerical".

Well, with my dad's help we got it built!

@peteristhegreat
peteristhegreat / enrich-chat-dump.py
Last active July 24, 2026 18:46
Enriched Copilot Chat Dump, Include Thinking and Tool Calls
#!/usr/bin/env python3
"""Enrich a Copilot chat markdown dump by interleaving the "thinking" blocks and
tool-call details that only exist in the JSON dump.
The JSON dump stores each conversation turn under ``prompts[]``. Every prompt has
an ordered ``logs[]`` timeline whose entries are either:
* ``kind == "request"`` -> assistant text in ``response.message[]``
* ``kind == "toolCall"`` -> ``tool`` name, ``args`` (JSON string), tool output
in ``response[]`` and a ``thinking.text`` block.
@peteristhegreat
peteristhegreat / home-maintenance-tracker.md
Last active June 11, 2026 21:30
Home Maintenance Tracker, Reminders, Property Management Software PMS

Why

Having an app in your pocket for data about something you own/maintain is great.

The gold standard, according to my relative is: Fuelio.

https://fuel.io/

The contenders

HomeZada

@peteristhegreat
peteristhegreat / certificates-ssl-tls.md
Created June 4, 2026 18:34
Certificates, SSL, TLS

Certificates

Verisign, Digicert, someone says that this site is legit. You get a little lock icon and now your bank or shopping cart interaction is more secure.

Installing Certificates

Self-Signing v using a Certificate Authority and a root certificate and a chain...

If I say my computer is sending what it is sending and that it is legit, but you don't trust me, then who can you trust? Why not a big corporation? And you pay the corporation to say you are who you say you are, and you are done, right?

@peteristhegreat
peteristhegreat / analytics-web-error-boundaries.md
Created June 4, 2026 18:09
Analytics for Websites, Error Boundaries

Analytics for Websites

I have dug into this topic a few different times over the years.

https://en.wikipedia.org/wiki/StatCounter

Initially I went with StatCounter. I liked how it could show visitor paths and the map of where people were coming from. I also liked seeing the size of the screens they were viewing from and what browsers they were using. The free tier has the last 500 or 2000 interactions.

I set it up on a bunch of Wordpress sites and other places.

@peteristhegreat
peteristhegreat / super-glue-small-surface.md
Created April 21, 2026 01:28
Super Glue on tiny small plastic parts with small surface area overlap

Super Glue on tiny small plastic parts with small surface area overlap

Cyanoacralate, CA Glue, Super glue, Loctite.

Any of these can hold most kinds of material together if there is enough surface area.

What do you do if you have a tiny plastic part that you just snapped in half?

A cheap smart watch had a clasp part made of nylon or abs plastic that snapped. How did I fix it?