Skip to content

Instantly share code, notes, and snippets.

View ehrenfeu's full-sized avatar

Niko Ehrenfeuchter ehrenfeu

View GitHub Profile
@ehrenfeu
ehrenfeu / compact_vmdk.sh
Created October 13, 2015 13:55
Compacting VMDK files
#!/bin/bash
# NOTE:
# first, start up the VM, log in and fill the free space with zeros, e.g.:
# > cat /dev/zero > zero.fill ; sync ; sleep 1 ; sync ; rm -f zero.fill
# exit on any error:
set -e
VBOX_BASEDIR="$HOME/VirtualBox_VMs"
@ehrenfeu
ehrenfeu / he-ipv6.sh
Last active August 29, 2015 14:14 — forked from jbhannah/he-ipv6.sh
#!/bin/sh
# Hurricane Electric IPv6 Tunnel Broker script for Ubuntu
# /etc/network/if-up.d/he-ipv6.sh
# Written by Jesse B. Hannah (http://jbhannah.net) <jesse@jbhannah.net>
# Based on instructions provided by Hurricane Electric (http://tunnelbroker.net)
###
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal