Skip to content

Instantly share code, notes, and snippets.

View kuttumiah's full-sized avatar

Md Robaiatul Islam kuttumiah

View GitHub Profile
@kuttumiah
kuttumiah / downgrade.sh
Last active October 30, 2019 16:32 — forked from reagent/downgrade.sh
Downgrade Apache + PHP on Ubuntu 18.04 LTS (Bionic Beaver)
cat <<EOF >> /etc/apt/sources.list
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise main restricted universe
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe
deb [allow-insecure=yes] http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF
apt-get update
apt-get purge \
apache2 \
@kuttumiah
kuttumiah / vdi-file-compacting.md
Created October 15, 2022 20:20 — forked from kuznero/vdi-file-compacting.md
How to compact VirtualBox's VDI file size?

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile