Skip to content

Instantly share code, notes, and snippets.

@soekarmana
soekarmana / create-swapfile.md
Last active June 30, 2023 01:03 — forked from dgoguerra/create-swapfile.md
create swapfile in ubuntu

Taken from a DigitalOcean tutorial.

Create and enable swapfile:

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.bak
@soekarmana
soekarmana / notes.md
Created July 15, 2018 02:06 — forked from ytjohn/notes.md
quick notes on doing a kvm image from ubuntu cloud image
@soekarmana
soekarmana / export.sh
Created June 11, 2017 07:50 — forked from ognjenm/export.sh
The following script will export all zimbra accounts to an import script
#!/bin/bash
# The following script will export all accounts to an import script.
# this script should be run as zimbra user
# target for ZCS 8, single server deployment
# last update 2014-04-04
# [email protected]
# original at http://www.3open.org/d/zimbra/export_accounts
# customize these to your needs