Skip to content

Instantly share code, notes, and snippets.

View KyleMiles's full-sized avatar
👾
Hacking

Kyle Martin KyleMiles

👾
Hacking
View GitHub Profile
#!/bin/sh
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# No swap for kube!!
swapoff -a
sed -i '/ swap / s/^/#/' /etc/fstab