Skip to content

Instantly share code, notes, and snippets.

View i-infra's full-sized avatar
💖
you're loved

infra i-infra

💖
you're loved
View GitHub Profile
@i-infra
i-infra / unsafe_hold_vio_glasgow.ihex
Last active April 25, 2026 19:43
patched as per https://gist.github.com/i-infra/ca4ae0ad7f9a0886412f32a06e0a0cba built from glasgow upstream @ 2e2e9bb9fa90b758e0daec402fa29eb9a624fe4d
:060000000201CF020F75A2
:03000B0002342597
:030013000233FEB7
:03001B0002344666
:030023000236F7AB
:03002B00020FCAF7
:0300330002358B08
:03003B000236F892
:03004300020100B7
:03004B00022B90F5
@i-infra
i-infra / MOD.md
Last active April 25, 2026 19:15
Glasgow Firmware Mod: Preserve VIO Rails Across Bitstream Reloads

Glasgow Firmware Mod: Preserve VIO Rails Across Bitstream Reloads

Problem

On revC hardware, loading a new bitstream (e.g. switching applets) unconditionally killed both VIO A and VIO B voltage rails. This made it impossible to configure a device on one port with one applet and then load a second applet to use it — the voltage was gone before the second applet even started.

Root cause

@i-infra
i-infra / compile.py
Created July 17, 2025 07:49 — forked from itdaniher/compile.py
compile python script to ELF on Linux via cython and gcc
import subprocess
import sys
import tempfile
from Cython.Compiler import Main, CmdLine, Options
in_file_name = sys.argv[1]
source = open(in_file_name).read()
out_file_name = in_file_name.replace('.py', '.out')
temp_py_file = tempfile.NamedTemporaryFile(suffix='.py', delete=False)
@i-infra
i-infra / deaddrop.py
Created July 16, 2025 06:42
I built this about a decade ago. It ran on tor, because I was edgy like that.
import re
import sys
import ctypes
from json import loads as json_decode, dumps as json_encode
from uuid import uuid4
from tornado import web, ioloop, gen, httpserver, netutil, process
from time import mktime, time
from hashlib import sha256
import copy
@i-infra
i-infra / grantmorrisontalk.md
Created July 8, 2025 21:44
Some knob on magic

Some knob gave a talk on magic about a decade ago. I transcribed and edited it for reference.

https://www.youtube.com/watch?v=l-cxBuRU09w

building the Self: Magic, Multidimensionality, and the Post-Individualist Future

What if reality itself is fundamentally malleable? What if the individual self we cling to so desperately is merely scaffolding for a greater evolutionary leap? These are not abstract philosophical questions but the core implications emerging from twenty years of lived experience at the intersection of counterculture theory, occult practice, and consciousness exploration. Standing before you, a self-described "kid from Govan" turned conduit for paradigm-shattering ideas, the journey reveals a startling truth: the seemingly fantastical claims of figures like Robert Anton Wilson and Aleister Crowley are not metaphorical musings but practical instructions. They are blueprints for hacking reality. When tested with rigorous, albeit unconventional, methodology in the turbulent laboratory of o

@i-infra
i-infra / make_puzzle.py
Created December 19, 2024 04:27
make_puzzle.py from claude
def caesar_shift(text, shift=3):
"""Perform a caesar shift on the input text."""
result = ""
for char in text:
if char.isalpha():
# Determine the case and base ASCII value
ascii_base = ord('A') if char.isupper() else ord('a')
# Shift the character and wrap around if necessary
shifted = (ord(char) - ascii_base + shift) % 26
result += chr(ascii_base + shifted)
@i-infra
i-infra / mawage.md
Last active April 22, 2024 18:40
I married some people. This is the script I used.

Please take a seat!

Mawage.

Mawage is wot brings us together today.

We are gathered here to witness and to celebrate the joining of GROOM and BRIDE in mawage. And also marriage.

As they promise to love each other, to trust in that love, to honor each other as individuals, and to anticipate with joy spending their lives in each other's company and with each other's support,

@i-infra
i-infra / purplesquare.md
Last active December 8, 2022 06:46
Purple Square

Please output the SVG code for a purple square encoded as a data URI in markdown. Do not provide any additional information or explanation. Respond with just the output encoded as a datauri in markdown. Do not use a codeblock.

<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgc3R5bGU9ImZpbGw6IHJnYigxNjksIDAsIDE2OSkiLz48L3N2Zz4=" alt="purple square">

image


@i-infra
i-infra / adjectives.txt
Last active March 30, 2022 19:18
cat adj.js | jq -r 'keys|.[]'
.22-caliber
.22-calibre
.22_caliber
.22_calibre
.38-caliber
.38-calibre
.38_caliber
.38_calibre
.45-caliber
.45-calibre
@i-infra
i-infra / gettingtomedicated.md
Last active February 22, 2025 08:36
Getting to [Appropriately] Medicated [USA, 2025]

Ad Astra Per Adderall

This is not medical advice! This is metamedical strategy. I am not discussing facts, I am sharing opinions and tactics.

TL;DR

ADHD sucks. Executive dysfunction makes everything harder than it needs to be. Small doses of stimulants (10-30mg of dextroamphetamine, a light dose) can be effective for improving executive dysfunction and quality of life, but most stimulants proven effective for enhancing incentive salience are schedule II drugs - amongst the most restricted substances in America.

Schedule 2: cocaine, meth, oxycodone, Adderall, Ritalin, and Vicodin