Skip to content

Instantly share code, notes, and snippets.

View JensAc's full-sized avatar
🎯
Focusing

Jens Schneider JensAc

🎯
Focusing
View GitHub Profile
@JensAc
JensAc / ktmux.sh
Created July 8, 2022 14:13
Simple tmux session setup for working with multiple kubernetes clusters
#!/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)
@JensAc
JensAc / gardener_kind_local.sh
Created March 10, 2022 12:52
Local Gardener
#!/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 )
@JensAc
JensAc / parse_h265.py
Last active March 14, 2017 03:08 — forked from figgis/parse_h265.py
H.265/HEVC bitstream parser
#!/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)