This file contains hidden or 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
# Kubernetes | |
kubec() { | |
export KUBECONFIG=${HOME}/.kube/config_${1} | |
} | |
_kubec() { | |
local configs_avail | |
configs_avail=(~/.kube/config_*) | |
for c in $configs_avail; do compadd ${$(basename $c)#"config_"}; done | |
} | |
compdef _kubec kubec |
This file contains hidden or 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 | |
IPV4_BASE=10.42.42. | |
IPV6_BASE=fd86:ea04:1115:: | |
WG_INTERFACE=wg0 | |
SERVER_PUB_KEY="MYPUBKEY" | |
ROUTED_NET="10.42.42.0/24, fd86:ea04:1115::/64" | |
#ROUTED_NET_ALL="0.0.0.0/0, ::/0" | |
SERVER_ENDPOINT="vpn.example.com:51820" |
This file contains hidden or 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
#!/bin/bash | |
set -eo pipefail | |
usage() { | |
echo "Usage: $0 <cmd>" | |
echo "Available commands:" | |
echo " * mic" | |
echo " * vid" | |
echo " * both" |
OlderNewer