Skip to content

Instantly share code, notes, and snippets.

View marnanel's full-sized avatar

Marnanel Thurman marnanel

View GitHub Profile
@marnanel
marnanel / chart-kryptos-panels.py
Created January 17, 2023 21:03
Analysis of Kryptos panels
from PIL import Image, ImageDraw
# non-Python people should note that this is valid JSON
PANELS = {
"A000": "BETWEENSUBTLESHADINGANDTHEABSENC",
"A001": "EOFLIGHTLIESTHENUANCEOFIQLUSION",
"A002": "ITWASTOTALLYINVISIBLEHOWSTHATPO",
"A003": "SSIBLE?THEYUSEDTHEEARTHSMAGNET",
"A004": "ICFIELDXTHEINFORMATIONWASGATHER",
"A005": "EDANDTRANSMITTEDUNDERGRUUNDTOANU",
@marnanel
marnanel / gist:ba6cba944d1f12d705891b1f7a7808d6
Last active November 26, 2018 23:02
RsaSignature2017 is not described
"RsaSignature2017" doesn't appear to be documented anywhere. Here is
my understanding of how to use it, based on reading the Mastodon
source code. My Ruby isn't very good, and my understanding of the
algorithm is clearly deficient, because it doesn't work.
== Validation ==
First part: we canonicalise the body signature. The body signature is
the "signature" field of the message, except that we remove the keys
"type", "id", and "signatureValue", then force "@context" to be
@marnanel
marnanel / gist:87fee222990df53d23a9999d90a4eae2
Created June 27, 2018 18:39
Sub Station Alpha (libass) subtitle format spec
Sub Station Alpha v4.00+ Script Format
1. 1. General information
2. 2. The [sections] of a Sub Station Alpha script
3. 3. The line types in a Sub Station Alpha script
4. 4. Header lines, [Script Info] section
5. 5. Style lines, [v4 Styles] section
6. 6. Dialogue event lines, [Events] section