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
#!/bin/bash | |
sudo apt purge snapd ubuntu-report popularity-contest apport whoopsie apport-symptoms && sudo apt-mark hold snapd ubuntu-report popularity-contest apport whoopsie apport-symptoms |
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
#!/bin/bash | |
# | |
# Checks all connected disks for errors with smartmontools | |
# Variables | |
########### | |
date=null # time for logs | |
diskcount=$(lsblk -l | grep -c 'disk') # counts all connected disks | |
disklist=$(lsblk -l | grep 'disk' | grep -oh "[[:alpha:]]*sd[[:alpha:]]*") # create a list of all connected disks https://stackoverflow.com/a/15997066 |
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
<domain type='kvm'> | |
<name>Virtual</name> | |
<memory unit='MiB'>2048</memory> | |
<vcpu placement='static'>1</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-q35-5.2'>hvm</type> | |
<boot dev='hd'/> | |
</os> | |
<cpu mode='host-model' check='none'/> | |
<devices> |
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
#!/bin/bash | |
declare -A pkgman | |
pgkman[apt]=$(which apt) | |
pkgman[yum]=$(which yum) | |
pkgman[pacman]=$(which pacman) | |
for i in "${!pkgman[@]}" # takes index of array | |
do | |
# apt (debian, ubuntu, mint...) |
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
#!/bin/bash | |
# | |
# Sets upper limit for CPU clock speed with TLP config. | |
set -e | |
# Variables | |
##################### | |
reload=false | |
conf="/etc/tlp.conf" | |
PS3="Select max CPU frequency: " |