implement http://goo.gl/DFySJY

was playing around with this a bit today for "shellshock" and aws restarts.

maybe it comes in handy for other folks.

it's my first go code so please bare with me if i missed anything.