Lock, expire and set no login shell for account:
(export user="someuser" && usermod -L "$user" && chage -E0 "$user" && usermod -s /sbin/nologin "$user" && echo "User $user is locked")
unlock:
(export user="someuser" && usermod -U "$user" && chage -m 0 -M 99999 -I -1 -E -1 "$user" && usermod -s /bin/bash "$user" && echo "User $user is unlocked")
# become root
sudo -s
# do the job
sysctl vm.swappiness=5 && echo "vm.swappiness=5" >> /etc/sysctl.conf
sudo apt-get purge `dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | tr "\\n" " "`
dmidecode -t system|grep 'Manufacturer\|Product'
yum install gcc-c++ make