Skip to content

Instantly share code, notes, and snippets.

View obabawale's full-sized avatar
🎯
Focusing

Olalekan Babawale obabawale

🎯
Focusing
View GitHub Profile
1. Change to the oracle virtualbox directory where you can run VBoxManage command
cd "C:\Program Files\Oracle\VirtualBox"
2. Clone the .vmdk file to a new .vdi file
VBoxManage clonehd "C:\Users\Somebody\VirtualBox VMs\Windows7\windows7.vmdk" "C:\Users\Somebody\VirtualBox VMs\Windows7\windows7.vdi" --format vdi
3. Run the next command to expand the cloned vdi disk. For instance, to expand to 50GB, do:
VBoxManage modifyhd "C:\Users\Somebody\VirtualBox VMs\Windows7\windows7.vdi" --resize 51200
4. In case you want convert to the .vmdk format, clone the new .vdi disk to .vmdk
@obabawale
obabawale / Installing wkhtmltopdf on Linux
Created August 18, 2017 17:39
How to install wkhtmltopdf.tar.xz on Linux Ubuntu systems
download=http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
wget $download -O wkhtmltox.tar.xz
tar xf wkhtmltox.tar.xz
sudo mv wkhtmltox/bin/* /usr/local/bin/
rm -Rf wkhtmltox*
@obabawale
obabawale / upgrade-postgres-9.3-to-9.5.md
Last active August 17, 2017 13:24 — forked from johanndt/upgrade-postgres-9.3-to-9.5.md
Upgrading PostgreSQL from 9.3 to 9.5 on Ubuntu

TL;DR

Install Postgres 9.5, and then:

sudo pg_dropcluster 9.5 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main