Skip to content

Instantly share code, notes, and snippets.

@thatfunkymunki
thatfunkymunki / repro.py
Last active June 3, 2026 23:23
pyrefly vs mypy repro
from typing import Protocol, Generic, Callable, Iterator, cast
from typing_extensions import ParamSpec
P = ParamSpec("P")
class FooResult:
changed: bool
class FooProtocol(Generic[P], Protocol):
def __call__(
self,
_bar: bool = False,
baz: str | None = None,
#!/bin/bash
BUNDLE_DIR="kvm_serial_bundle"
TAR_FILE="kvm_serial_bundle.tar.gz"
echo "Creating staging directory..."
mkdir -p "$BUNDLE_DIR"
cd "$BUNDLE_DIR"
echo "Downloading ARM64 Python wheels..."
mkdir -p /tmp/pypkgs
pip install --no-index --find-links=/tmp --target /tmp/pypkgs pyftdi
cat << 'EOF' > /tmp/run_term.py
import ctypes.util
import sys
import runpy
ctypes.util.find_library = lambda x: '/usr/lib/libusb-1.0.so'
sys.argv = ['pyterm.py', '-b', '115200', 'ftdi://ftdi:232:A9KX25LZ/1']
text
reboot --eject
lang en_US.UTF-8
keyboard us
timezone America/Los_Angeles
timesource --ntp-server 0.rhel.pool.ntp.org
timesource --ntp-server 1.rhel.pool.ntp.org
timesource --ntp-server 2.rhel.pool.ntp.org
network --device=link --noipv4 --ipv6=auto --activate --hostname=opiss1
ignoredisk --only-use=nvme0n1
instance-id: rpi5-node-1
local-hostname: razpiss1
#cloud-config
manage_etc_hosts: true
preserve_hostname: false
users:
- name: munki
groups: [ adm, systemd-journal, wheel ]
sudo: [ "ALL=(ALL) NOPASSWD:ALL" ]
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
macaddress = {
source = "ivoronin/macaddress"
}
}
}
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
macaddress = {
source = "ivoronin/macaddress"
version = "0.3.2"
}
}

Keybase proof

I hereby claim:

  • I am thatfunkymunki on github.
  • I am munki (https://keybase.io/munki) on keybase.
  • I have a public key ASBncPAKH-Ym1ir2Ob2i5tZZJRIijlpBSB671TIlzstOago

To claim this, I am signing this object:

@thatfunkymunki
thatfunkymunki / hterm_solarized.js
Created November 27, 2017 07:08 — forked from russelldavies/hterm_solarized.js
Chrome/Chromium OS hterm and Secure Shell solarized color scheme.
// Run in the JavaScript console of the hterm browser window
// Clear all existing settings - you probably don't want to do this.
// Preferences are now stored in "chrome.storage.sync" instead of
// "window.localStorage" so if you clear your preferences the changes
// will be propagated to other devices.
//term_.prefs_.storage.clear();
var htermProfiles = [