A simple repo to store my srcipts.
# Prepare
sudo apt install -y vim curl
mkdir ~/git && cd ~/git
#!/bin/sh | |
docker rm -f $(docker ps -qa) | |
docker volume rm $(docker volume ls -q) | |
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico" | |
for dir in $cleanupdirs; do | |
echo "Removing $dir" | |
rm -rf $dir | |
done |
#!/bin/sh | |
# Customize with your datas | |
APIKEY="secret_token" | |
DOMAIN="my_domain" | |
RECORD="my_record" | |
# DO NOT EDIT AFTER THIS LINE | |
CURRENTIP=$(curl -s ifconfig.co/ip) | |
IPLENGTH=$(echo -n ${CURRENTIP} | wc -m) |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block, everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# User configuration | |
export PATH=/usr/local/bin:$PATH |