Skip to content

Instantly share code, notes, and snippets.

View anonhostpi's full-sized avatar
📝
Studying...

Blue Falcon anonhostpi

📝
Studying...
View GitHub Profile
@anonhostpi
anonhostpi / utmt.md
Last active May 27, 2026 13:01
Using Trust Maintenance Tunnelling Protocol

Using Trust Maintenance Tunnelling Protocol

Using Trust Maintenance Tunneling is a general and intentionally vague protocol for specifying how one might establish transport tunnels using trusted duplex mediums.

Required parties for UTMT:

  • A controlpane server cluster with at least one server and a singular controller with communication established between all servers in the cluster and the controller itself. "Communication established" is intentionally vague.
  • At least one agent client
  • At least one trusted duplex between the agent and the cluster

A trusted duplex is defined as any duplex data stream that you are authorized for and trusted to use. An implementation of UTMT may restrict the allowed set of trusted duplexes to a specific set. What and which duplexes are allowed is intentionally vague.

@anonhostpi
anonhostpi / symbol-audit.py
Created May 10, 2026 17:51
Symbol audit & backlog tools — find multi-word symbols, classify, track refactoring progress
#!/usr/bin/env python3
"""
Multi-word symbol scanner for any codebase.
Scans source files for multi-word identifiers (camelCase, snake_case, etc.),
optionally classifies them as internal vs external, and outputs CSVs.
Output:
symbols-audit.csvall occurrences with origin classification
symbols-internal.csvinternal-only, origin column dropped
@anonhostpi
anonhostpi / ECE211_Midterm_Study_Guide.md
Last active March 14, 2026 12:19
ECE 211 Engineering Statics - Midterm Study Guide (Spring 2026)

ECE 211 - Engineering Statics: Comprehensive Midterm Study Guide

YOUR EXAM IS TODAY: Friday, March 13, 2026 | Ironwood 120 | Choose: 9-11 AM, 1-3 PM, or 6-8 PM


COMPANION FILES (also in this folder)

  • ECE211_Weak_Areas_Focus.md - Deep-dive tutorials on your 8 weakest topics (based on your Canvas grades)
  • ECE211_Video_Resources.md - All YouTube lecture & review videos, prioritized by your weak areas
  • Formula_sheet_statics_reactions_2D_3D-1.pdf - Textbook support reaction tables (in .playwright-mcp folder)
@anonhostpi
anonhostpi / RULES.md
Created January 26, 2026 04:01
Agent rules for microcommitting

Implementation Rules

These rules govern the complete workflow from discovery through implementation.


Rule 0: Discovery & Design

Before planning implementation, you will explore and design the solution.

@anonhostpi
anonhostpi / .commitlintrc.yml
Created December 23, 2025 02:46
Commitlint
rules:
type-enum:
- 2
- always
- - build # build system changes
- infra # CI/CD, VCS, deployment, etc.
- devtools # developer tools not covered by `infra`
- docs # non-meta documentation changes
- meta # meta documentation changes or manifest-related changes
@anonhostpi
anonhostpi / tree.yaml.ts
Last active November 20, 2025 01:15
Generate a yaml tree representing a directory
#!/usr/bin/env -S deno run --allow-read --allow-run
import { parseArgs } from "jsr:@std/cli/parse-args";
import { resolve, normalize, relative } from "jsr:@std/path";
interface Tree {
[key: string]: string | Tree;
}
// -------------------------------------------------------------
@anonhostpi
anonhostpi / unlazy.js
Last active November 1, 2025 17:05
Unlazy a JS Generator Function
// primes the generator function from arguments provided up to the first yield
// no priming performed without arguments/initial call
export default function unlazy(lazyGeneratorFunction) {
const generatorProxy = function (...args) {
const lazy = lazyGeneratorFunction.apply(this, args);
const first = lazy.next(); // run up to first yield
// create a proxy generator that replays that first result once
let sentFirst = false;
const proxy = {
@anonhostpi
anonhostpi / wasm.ps1
Last active September 14, 2025 08:42
How to do wasm in powershell
# iex (iwr 'https://gist.githubusercontent.com/anonhostpi/e33c2fb4e3282ff75962cf12a2a9af6a/raw/wasm.ps1').content
& {
# Install-Package "Wasmtime" -ProviderName NuGet
$package = Get-Package -Name "Wasmtime"
$directory = $package.Source | Split-Path
$runtime = "win-x64" # "win/linux/osx-arm64/x64"
@anonhostpi
anonhostpi / cloud-init.yaml
Last active September 8, 2025 00:41
Archive-Wasm builder for Wasmtime
# $init = path/to/cloud-init.yaml
# # (iwr "https://gist.githubusercontent.com/anonhostpi/05aa300aa56a3b1baf19561b3bc607f5/raw/cloud-init.yaml").Content | Out-File $init
#
# multipass launch --name archive-wasm --memory 6G --disk 20G --cloud-init $init --network "<your-network-adapter>"
# multipass mount "$(Resolve-Path . <# or wherever #>)" archive-wasm:/home/ubuntu/shared
# multipass stop archive-wasm
# multipass start archive-wasm
# multipass shell archive-wasm
#
# # Inside the VM:
@anonhostpi
anonhostpi / wasm.ps1
Last active December 25, 2025 23:24
Wasm in PowerShell
# iex (iwr 'https://gist.githubusercontent.com/anonhostpi/c82d294d7999d875c820e3b2094998e9/raw/wasm.ps1').Content
$engine = & {
$package = "Wasmtime"
$runtime = & (nmo {iex "using namespace System.Runtime.InteropServices" }) {
$runtime = @{}
$is = { param([OSPlatform] $platform); return ([RuntimeInformation]::IsOSPlatform($platform)) }