I hereby claim:
- I am parsley42 on github.
- I am david_parsley (https://keybase.io/david_parsley) on keybase.
- I have a public key ASBFnmyvX_KKzr7bvSbmC_bSi2Tp5KVIVHNfrLvClNnREwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
if ! grep -q 'ssh-agent' $HOME/.bashrc | |
then | |
mkdir -p $HOME/.config/systemd/user | |
cat << "EOF" > $HOME/.config/systemd/user/ssh-agent.service | |
[Unit] | |
Description=SSH key agent | |
[Service] |
#!/bin/bash -e | |
# aws-sso-session | |
# Sets up aws configuration from temporary credentials provided by SSO. | |
usage(){ | |
cat >&2 <<EOF | |
Usage: | |
# These values should be pasted in from AWS SSO web app. | |
$ AWS_ACCESS_KEY_ID=<redacted> |
#!/bin/bash -e | |
# Usage: aws-session <token> (account) | |
# Sets up aws configuration for API access using temporary credentials | |
# See: https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/ | |
# https://mharrison.org/post/aws_mfa/ | |
usage(){ | |
cat <<EOF | |
Usage: aws-session [-r <region>] ([-i] | <token> (account)) |
# Bash Terraform completion | |
# Originally adapted from: https://gist.github.com/cornfeedhobo/8bc08747ec3add1fc5adb2edb7cd68d3 | |
# Adapted from: https://gist.github.com/zish/85dccece461e050077997ff5d7d9c9d4 by Jeremy Melanson | |
# | |
#--- Get options listing from Terraform command. | |
_terraform_completion_get_opts () { | |
local CMD_EXEC="${1}" | |
local TF_OPT="${2}" |
#!/bin/bash -e | |
trap_handler() | |
{ | |
ERRLINE="$1" | |
ERRVAL="$2" | |
echo "line ${ERRLINE} exit status: ${ERRVAL}" | |
# The script should usually exit on error | |
exit $ERRVAL | |
} |
#!/bin/bash | |
if [ ! "$1" ] | |
then | |
echo "Missing namespace" | |
exit 1 | |
fi | |
NAMESPACE=$1 |
# User specific aliases and functions | |
source <(kubectl completion bash) | |
source <(helm completion bash) | |
source <(argocd completion bash) | |
complete -C '/usr/local/bin/aws_completer' aws | |
alias k=kubectl | |
complete -F __start_kubectl k | |
alias h=helm | |
complete -F __start_helm h | |
export PATH=$HOME/go/bin:/usr/local/go/bin:$PATH |