Skip to content

Instantly share code, notes, and snippets.

View richardokonicha's full-sized avatar
:octocat:
learning to ask the right questions

r.e.e.c.h.e.e richardokonicha

:octocat:
learning to ask the right questions
View GitHub Profile
@peterchester
peterchester / swap.sh
Last active April 13, 2024 20:22
A simple little shell script that executes the digital ocean swap file tutorial.
#/bin/sh
# Creates a 1gb swap image.
# @see https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps
if [ -f /var/swap.img ]; then
echo "Swap file already exists."
else
touch /var/swap.img
chmod 600 /var/swap.img