Skip to content

Instantly share code, notes, and snippets.

View tleach's full-sized avatar

Tom Leach tleach

View GitHub Profile
@tleach
tleach / prerun.bat
Last active August 29, 2015 14:12 — forked from DylanLacey/prerun.bat
echo 127.0.0.0 pagead2.googlesyndication.com >> %WINDIR%\System32\Drivers\Etc\Hosts
echo 127.0.0.0 googleads.g.doubleclick.net >> %WINDIR%\System32\Drivers\Etc\Hosts
echo 127.0.0.0 google.com >> %WINDIR%\System32\Drivers\Etc\Hosts
#!/usr/bin/env python
"""
This module will bootstrap a machine using chef. The purpose of this
script is actually to work with AWS Auto Scaling Groups. The user data
for the Launch Configuration is set to download this script and then
run it. This is also stores the results in a private gist and sends
a message to logstash with the results.
"""