Skip to content

Instantly share code, notes, and snippets.

View jinjie's full-sized avatar
🇸🇬
Hey there!

Kong Jin Jie jinjie

🇸🇬
Hey there!
View GitHub Profile
@jinjie
jinjie / swap.sh
Last active May 17, 2020 06:52 — forked from Repox/swap.sh
Shell script for adding swap to Linux
#!/bin/sh
# Usage: curl <url to the raw script> | sh -s <size in MB>
# size of swapfile in megabytes
swapsize=1024
if [ $1 ];
then
swapsize=$1