Skip to content

Instantly share code, notes, and snippets.

View spjmurray's full-sized avatar

Simon Murray spjmurray

  • Nscale
  • Manchester UK
View GitHub Profile
@spjmurray
spjmurray / ceph.json
Created August 21, 2017 09:15
Ceph Dashboard 21/08/17
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"hideControls": false,
"id": 10,
"links": [],
@spjmurray
spjmurray / floodfill.py
Last active August 1, 2018 09:26
Flood filling contiguous areas on a 2D grid
#!/usr/bin/python
import random
import sys
# Given an XxY array...
X = 24
Y = 16
# ... This is modelled as nested lists for O(1) element access times
@spjmurray
spjmurray / signing.go
Created October 10, 2018 15:50
DSA signing
package main
import (
"crypto/dsa"
"crypto/rand"
"crypto/sha256"
"fmt"
"math/big"
"strings"
)
@spjmurray
spjmurray / gist:f32ac2d79a72603f18af5a68d9751830
Created February 5, 2021 13:56
Pro-mode Kind (availability zones)
#!/bin/bash
kind create cluster --config ~/kind/3-node.yaml
kubectl label node kind-control-plane failure-domain.beta.kubernetes.io/zone=twilight
kubectl label node kind-worker failure-domain.beta.kubernetes.io/zone=end
kubectl label node kind-worker2 failure-domain.beta.kubernetes.io/zone=danger
@spjmurray
spjmurray / gist:715b92e705fbe0f7841f6ed1171b6e49
Created February 8, 2021 14:33
Kind 3 node configuration
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
@spjmurray
spjmurray / gist:edc1d1036b5f4083a960143409092ad1
Created October 30, 2024 14:32
Region Security Groups Patch 1
commit 23771872a3ce515e80749c6dfc29da2043b60a78
Author: Simon Murray <[email protected]>
Date: Wed Oct 30 13:12:23 2024 +0000
Make This Usable
diff --git a/Makefile b/Makefile
index e518fdf..5b98ade 100644
--- a/Makefile
+++ b/Makefile