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
#1. Remove the current version and clear app cache | |
sudo apt-get remove salt-minion | |
sudo apt-get clean | |
apt-get autoremove | |
#2. Create script to view all PPAs: | |
#Save as script as listppa.sh: | |
#! /bin/sh | |
# Script to get all the PPA installed on a system |
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
# echo 'stopping all containers...\n ' | |
docker kill $(docker ps -q) | |
# echo 'removing all containers...\n ' | |
docker rm $(docker ps -a -q) | |
# echo 'removing all docker images...\n ' | |
docker rmi $(docker images -a -q) | |
# echo 'removing all docker volumes...\n ' |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |