Skip to content

Instantly share code, notes, and snippets.

@ericjster
ericjster / ej-k8s-set-drain-buffer.sh
Created July 6, 2022 16:12
Set draino/drain-buffer
#!/bin/bash
# See https://github.com/DataDog/k8s-resources/pull/33140
# See https://datadoghq.atlassian.net/wiki/spaces/K8S/pages/2277966820/NLA+-+FAQ#%5BinlineExtension%5DHow-can-I-slow-down-the-pace-of-node-rotation-for-my-nodegroup-%3F
# We want to set draino/drain-buffer to a fixed value, for all clusters.
# Currently NLA/Draino is only on us3.prod.dog.
BUFFERVAL=9h
FPATCH=/tmp/tmp_patch.yaml
@ericjster
ericjster / try_keepass.py
Last active April 20, 2023 03:27
keepass python
import pykeepass # pip install pykeepass
import construct
prefixes = [
"abc",
"def",
]
mids = [
"1",
@ericjster
ericjster / ej_241223_merge_options_test.go
Created December 25, 2024 15:30
ej_241223_merge_options_test.go
package main
import (
"encoding/json"
"fmt"
"math"
"reflect"
"testing"
"github.com/stretchr/testify/assert"