Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
DEBUG=false
INPUT="./users.txt"
OUTPUT="./output.txt"
find_user(){
userid=$1
hit_counter=0
has_multiple_stack_user=""
@elassadi
elassadi / cleanup.sh
Created December 30, 2020 23:27 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/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 /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done