Skip to content

Instantly share code, notes, and snippets.

@ausarb
ausarb / UserData.xml
Created September 22, 2020 11:58
Simple MFA protected Windows spot instance jump host
<powershell>
$rdpTemplate = @"
screen mode id:i:2
use multimon:i:0
desktopwidth:i:1920
desktopheight:i:1200
session bpp:i:32
winposstr:s:0,3,0,0,800,600
compression:i:1
keyboardhook:i:2
@ausarb
ausarb / flattest-route.md
Last active September 26, 2020 01:39
Recreate "Flattest Route"

Flattest Route history

https://www.flattestroute.com/ was originally created by Zivi Weinstock, but taken offline due to Google Map's new pricing structure. The good news is that for limited personal use of a single person/family the cost is between $0 and cheap.

Disclaimer (Use at your own risk)

These procedures involve Google API's which are paid services. Normal usage should fall within the free bucket but if you fail to protect your key and give it to someone else they could run up charges.

  • Setup billing alerts (just in case). You'll get an email if your GCE goes over any threshold you choose. https://cloud.google.com/billing/docs/how-to/budgets
  • Don't hand your key out to ANYONE. This includes the code you've modified.
  • Truely protecting the key means running this as a web service on the Internet and restricting the key to it, which is beyond the scope of this document.