Skip to content

Instantly share code, notes, and snippets.

View strydex's full-sized avatar
🐍
Pythoning

Strydex strydex

🐍
Pythoning
  • Moscow
View GitHub Profile
@alexanderstephan
alexanderstephan / .sh
Created August 15, 2021 17:07
Create a swap file on Manjaro or Arch
# Create the file itself
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
# Only root should be able to read and write
sudo chmod 600 /swapfile
# Format the swap file
sudo mkswap /swapfile
# Enable the swap