Skip to content

Instantly share code, notes, and snippets.

View mhavard999's full-sized avatar

Matthew Havard mhavard999

View GitHub Profile
@mhavard999
mhavard999 / vm-resize-hard-disk.md
Last active March 9, 2016 23:22 — forked from christopher-hopper/vm-resize-hard-disk.md
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

@mhavard999
mhavard999 / benchmarks.py
Created June 6, 2015 20:08
Python Benchmarks
from timeit import timeit
from random import choice, randint
from string import ascii_letters
# random_keys = [''.join([choice(ascii_letters) for i in range(randint(4,30))]) for i in range(10000)]
def add2dict(random_keys):
s = {}
for key in random_keys:
s[key] = 1