This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This simple script simplifies working with multiple Kubernetes clusters | |
# Call it with a path to a kubeconfig.yaml as input and it will create | |
# a new tmux window with 2 panes, one for k9s and one for a shell | |
KUBECONFIG=$(readlink -f $1) | |
SESSIONNAME=kube | |
WINDOWNAME=$(basename -s .yaml $KUBECONFIG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# make sure no cluster is running anymore | |
make kind-down | |
# export LD_PRELOAD to libuserhost. | |
# This enables using the extension-local-provider as non-priviledged user | |
export LD_PRELOAD=$(whereis libuserhosts.so | cut -d ' ' -f 2 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
- ae(v): context-adaptive arithmetic entropy-coded syntax element. The parsing process for this descriptor is | |
specified in clause 9.3. | |
- b(8): byte having any pattern of bit string (8 bits). The parsing process | |
for this descriptor is specified by the return value of the function | |
read_bits( 8 ). | |
- f(n): fixed-pattern bit string using n bits written (from left to right) |