Skip to content

Instantly share code, notes, and snippets.

View VitaliiTsilnyk's full-sized avatar

Vitalii Tsilnyk VitaliiTsilnyk

View GitHub Profile
@osiyuk
osiyuk / docker-gc
Created September 1, 2017 02:14
free up disk space after docker garbage
#!/bin/bash
GARBAGE="/var/lib/docker/aufs/diff"
du -hd 1 $GARBAGE | sort -hrk 1 | head -25
find $GARBAGE -maxdepth 1 -name *-removing -exec rm -rf '{}' \;
#!/bin/bash
#REPO_PATH=/etc/openvpn/zapret-info
CUSTOM_DOMAINS_FILE=/etc/openvpn/custom_domains.txt
OPENVPN_CONFIG_FILE=/etc/openvpn/server.conf
#echo "Updating git repo..."
#git -C "$REPO_PATH" pull
echo "Parsing the dump..."