I hereby claim:
- I am gibby on github.
- I am cgibson13 (https://keybase.io/cgibson13) on keybase.
- I have a public key ASAtPHCZo-xqjpRA0kW8EMJbQ2Kanh-WDd5MWuV9Bmci5Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
## setup _________________________________ | |
TMUX_VER=2.9a | |
LIBEVENT_VER=2.1.11-stable | |
TEMP_COMPILE=~/tmux-temp-compile | |
COMMON_INSTALL_PREFIX=/opt | |
SYMLINK=/usr/local/bin/tmux |
We need to run multiple versions of kubectl for compatibility with various kubernetes clusters.
It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.
With brew, it's simple to:
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
#!/bin/bash | |
enable() { | |
sudo mv "/Library/Sophos Anti-Virus.disabled" "/Library/Sophos Anti-Virus" | |
sudo mv "/Library/SophosCBR.disabled" "/Library/SophosCBR" | |
sudo mv "/Applications/Sophos.disabled" "/Applications/Sophos" | |
} | |
disable() { | |
sudo mv "/Library/Sophos Anti-Virus" "/Library/Sophos Anti-Virus.disabled" |
#!/bin/bash | |
NAMESPACE="foo" \ | |
kubectl get namespace "$NAMESPACE" -o json | tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" | kubectl replace --raw /api/v1/namespaces/"$NAMESPACE"/finalize -f - |