Skip to content

Instantly share code, notes, and snippets.

@llamasoft
llamasoft / httpy.yaml
Created May 13, 2020 20:41
A short, simple Istio traffic splitting demo.
apiVersion: v1
kind: ConfigMap
metadata:
name: httpy-files
data:
server.py: |
import http.server
import os
import socket
import json
@llamasoft
llamasoft / plot-o-matic.sh
Last active June 8, 2021 20:25
Chia Plotter
#!/usr/bin/env bash
######################## REQUIRED ENVIRONMENT VARIABLES ########################
# FARMER_PUBKEY
# The farmer public key used to generate the plots.
# POOL_PUBKEY
# The pool public key used to generate the plots.
# SCRATCH_DIR
# An existing directory where plotters put their temp files.
# WRANING: Everything under this directory will be deleted.
@llamasoft
llamasoft / hash_xor_zero.py
Last active April 26, 2023 00:16
Finding hashes that XOR to zero
import hashlib
import os
import numpy as np
import galois
GF = galois.GF(2)
# This script works for any hash algorithm!
hash_algo = hashlib.sha256
@llamasoft
llamasoft / kindred.md
Created March 14, 2026 17:47
MTG Kindred Commander Stats

A "kindred commander" is a commander that interacts with the specified creature type in any way, regardless of the commander's own subtypes.
For example, despite there being no Balloon creature cards, The Jolly Balloon Man is a Balloon kindred commander even though it's a Human Clown.

Caveats

  • Data was generated on 2026-03-14. Counts will likely change over time.
  • Card data was sourced from MTGJSON.com which may not 100% align with Scryfall.
  • The counts below included additional processing, such as excluding kindred commanders who incidentally have a creature type in their name.
    • e.g. Scion of the Ur-Dragon does not count as a Scion kindred commander even though it appears in the search results.
  • Only creature types mentioned in section 205.3m of the comprehensive rules are included.