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 / 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

@i-infra
i-infra / kratom.md
Last active February 26, 2021 08:22
an introduction to kratom

An introduction to appropriate use of Kratom

Short and to the point, based on personal experience and a multi-year seemingly-sustainable pattern of use for managing pain and borrowing spoons.

TL;DR

  • Kratom is a probably-legal-in-your-area plant available as powder and extract in swaths of the country.
  • It is available in a variety of strains across three main "colors" - red is "especially" analgesic, white is "especially" stimulating, and green is "all-around." I prefer and stock "White Maengda."
  • One can become addicted to it, and experience (even severe) withdrawals, but it's hard to do so.
  • It acts as a dose-dependent analgesic, and as a stimulant in small doses.

Welcome to the beta of GetPost!

What? (is this?)

It's a spindly-legged spirit-child mashup of Imgur.com, gist.Github.com, http://sprunge.us, and darkhttpd.

It's stupid-simple simple file / note sharing, that's easy to use.

Instead of requiring users to setup a server of their own, GetPost allows HTML/JS-savvy individuals to setup and administer an extremely hackable (single-file!) service, hosted on Cloudflare, for free, for their communities.