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