Skip to content

Instantly share code, notes, and snippets.

@guterz
guterz / delete_default_vpcs.sh
Created July 5, 2023 23:16
delete_default_vpcs.sh
#!/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
# Author: Christopher Gutierrez <
# Description: Zsh configuration for Christopher Gutierrez
# License: MIT
# Version: 1.0.0
# Date: 2025-05-13
######################## 1. Shell options ########################
# Navigation / editing
setopt AUTO_CD # cd by typing directory name
setopt CORRECT # spell-correct commands
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'
@guterz
guterz / .vimrc
Created April 9, 2021 03:42
.vimrc
syntax on
colorscheme delek
@guterz
guterz / bind_keys.zsh
Last active August 30, 2022 04:56
Bind keys for .zshrc and iTerm
bindkey "[D" backward-word
bindkey "[C" forward-word
bindkey "^[a" beginning-of-line
bindkey "^[e" end-of-line