Skip to content

Instantly share code, notes, and snippets.

@ajorg
ajorg / build-sk-libfido2.sh
Last active February 6, 2026 19:41
FIDO2 Security Key Provider for macOS SSH
#!/bin/bash
# build-sk-libfido2.sh
#
# Builds the OpenSSH FIDO2 security key provider (sk-libfido2.dylib) from
# openssh-portable source for use with macOS's built-in SSH client.
#
# macOS ships OpenSSH with FIDO2 support compiled in, but without the
# middleware library that talks to hardware keys. This script builds it,
# statically linking libfido2/libcbor/libcrypto so there are no Homebrew
# runtime dependencies. Build tools are removed afterward.
@ajorg
ajorg / human_eye_correction.py
Last active April 3, 2026 16:43
Correct NASA's Artemis II Earth lookback image to what the astronauts probably saw
# No Copyright, product of Gemini under prompting by Andrew Jorgensen
# No promises the math and science are right either
import cv2
import numpy as np
from PIL import Image
from PIL.ExifTags import TAGS
def get_exif(path):
img = Image.open(path)
exif = img._getexif()