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
# Generate a new key. Suggestion is to use RSA 4096. Enter your name and email when prompted. | |
gpg --full-gen-key | |
# Get the ID of the generated key | |
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG "[email protected]" | awk '/^sec/ {split($2, a, "/"); print a[2]}') | |
# Export the key which you will need to copy to your user settings in your repository (GitHub, GitLab, etc.) | |
gpg --armor --export $GPG_KEY_ID | |
# Tell git you want to sign all of your commits from now on. If you always use the same user, then use `--global` instead of `--local`. |
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
# Append .zshrc with | |
zstyle ':completion:*:make:*:targets' call-command true | |
zstyle ':completion:*:*:make:*' tag-order 'targets' |
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 | |
set -ex | |
NAMESPACE="default" | |
NAME="admin" | |
SECRET_NAME="admin-secret" | |
kubectl create serviceaccount -n $NAMESPACE $NAME | |
kubectl create clusterrolebinding $NAMESPACE-$NAME --clusterrole=cluster-admin --serviceaccount=$NAMESPACE:$NAME |