Skip to content

Instantly share code, notes, and snippets.

View patx's full-sized avatar

Harrison Erd patx

View GitHub Profile
#!/usr/bin/env python3
# fastPATX (PyQt6)
from __future__ import annotations
import os
import sys
import webbrowser
from dataclasses import dataclass
from pathlib import Path

🥝 The Officially Unofficial, Shamelessly Sarcastic Guide to MicroPie

Table of Contents:

  1. What Even Is This
  2. Installation: Your First Mistake
  3. Hello, World, You Minimalist Freak
  4. Routing: Guess the URL by Reading a Method Name
  5. Parameters: MicroPie Sees All
  6. Sessions: For When You Need to Remember Your Regret
@patx
patx / kenobi.py
Last active January 5, 2026 05:11
KenobiDB
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
KenobiDB is a small document-based DB, supporting simple usage including
insertion, removal, and basic search.
Written by Harrison Erd (https://patx.github.io/)
https://pypi.org/project/kenobi/
"""
# Copyright Harrison Erd
@patx
patx / pickledb1-4_benchmark.py
Created December 10, 2025 19:30
Script used to benchmark pickleDB v1.4
#!/usr/bin/env python3
import argparse
import asyncio
import os
import time
from pathlib import Path
from pickledb import PickleDB
#!/usr/bin/env python3
import argparse
import asyncio
import time
from mkvdb import Mkv
# ------------------------------------------------------------------------------
# SYNC BENCHMARKS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Shortened - Shorty</title>
<style>
* {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shorten URL - Shorty</title>
<style>
* {
margin: 0;
padding: 0;