Skip to content

Instantly share code, notes, and snippets.

ausarb / UserData.xml
Created September 22, 2020 11:58
Simple MFA protected Windows spot instance jump host
View UserData.xml
$rdpTemplate = @"
screen mode id:i:2
use multimon:i:0
session bpp:i:32
ausarb /
Last active September 26, 2020 01:39
Recreate "Flattest Route"

Flattest Route history 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.
  • 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.