This file contains 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 | |
if [ "$AWS_SECRET_ACCESS_KEY" = "" ]; then | |
echo "No AWS creds set" | |
exit 1 | |
fi | |
for region in $(aws ec2 describe-regions --region eu-west-1 --output=json | jq -r .Regions[].RegionName); do |
This file contains 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
#Aliases | |
alias cl='clear' | |
alias ll='ls -lah' | |
alias hg='history | grep $1' | |
#Functions | |
function rdp() { | |
aws ssm start-session --target $1 --document-name AWS-StartPortForwardingSession --parameters "localPortNumber=55678,portNumber=3389" --region $2; | |
}; | |
function ssm() { |
This file contains 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
alias k='kubectl' | |
alias k8s='kubectl config use-context $1' | |
alias dk8s='kubectl config get-contexts' | |
alias kubectl='kubecolor' | |
alias kallp='kubectl get pods -A -o wide' | |
alias kalli='kubectl get ing -A' | |
alias kdel='kubectl delete -f' | |
alias kapp='kubectl apply -f' | |
alias krm='kubectl delete' | |
alias kdesc='kubectl describe' |
This file contains 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
syntax on | |
colorscheme delek |
This file contains 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
bindkey "[D" backward-word | |
bindkey "[C" forward-word | |
bindkey "^[a" beginning-of-line | |
bindkey "^[e" end-of-line |