Skip to content

Instantly share code, notes, and snippets.

View eggsbenjamin's full-sized avatar

Ben Davies eggsbenjamin

View GitHub Profile
@eggsbenjamin
eggsbenjamin / Makefile
Created April 24, 2021 14:08
Minimal Kubebuilder Local Setup
.PHONY: kubebuilder
# Directory to store local binaries in - can be overridden where necessary
BIN_PATH ?= $(CURDIR)/bin
SHELL := /bin/bash
# Ensure binaries in bin are used
PATH := $(BIN_PATH):$(BIN_PATH)/bin:$(PATH)
export PATH
@eggsbenjamin
eggsbenjamin / keybase.md
Last active November 23, 2020 16:51
keybase.md

Keybase proof

I hereby claim:

  • I am eggsbenjamin on github.
  • I am eggsbenjamin (https://keybase.io/eggsbenjamin) on keybase.
  • I have a public key ASB_3DfkJQV5xIagxeyNA7120CfvaXA04sBSqZ3TCKMNmgo

To claim this, I am signing this object:

@eggsbenjamin
eggsbenjamin / iris.csv
Created October 19, 2019 23:06
Golang Machine Learning - K Nearest Neighbours Algorithm
sepal_length sepal_width petal_length petal_width species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
@eggsbenjamin
eggsbenjamin / rsa.go
Created May 6, 2019 20:47
Generating an RSA key pair using golang
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"flag"
"log"
"math/big"