Skip to content

Instantly share code, notes, and snippets.

View bergman's full-sized avatar

Joakim Bergman bergman

View GitHub Profile
@bergman
bergman / nodes.py
Created February 14, 2017 11:06
some useful kubectl customisations
# run like this:
# kubectl get nodes -o json | python nodes.py
import json
import sys
format = "%-45s %-12s %6s"
print format % ("NAME", "IP", "IMAGES")
@bergman
bergman / Implements.java
Created February 8, 2018 16:27
decisions
public static class Result<T> implements Future<T> {
private Future<T> future;
private Result(Future<T> future) {
this.future = future;
}
/**
* Block until done and {@code System.exit()} with an appropriate status code.
*/
@bergman
bergman / applefn.patch
Last active December 10, 2021 14:20 — forked from fauxpark/applefn.patch
QMK Apple Fn
diff --git a/common_features.mk b/common_features.mk
index 8c593024f0..d70f360470 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -658,40 +658,44 @@ endif
JOYSTICK_ENABLE ?= no
VALID_JOYSTICK_TYPES := analog digital
JOYSTICK_DRIVER ?= analog
ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
ifeq ($(filter $(JOYSTICK_DRIVER),$(VALID_JOYSTICK_TYPES)),)