Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -e
# Use this script as an ssh ProxyCommand to connect via SSH to non-public EC2
# instances by their instance ID.
#
# Suggested ~/.ssh/config:
# host i-* mi-*
# ProxyCommand /PATH_TO_THIS_SCRIPT/ssm-ssh-proxy %h %p
# User ec2-user
#
BEGIN MESSAGE.
92OTqncJrJwz5NY WTTaxNB0bMq4jvg gBfNGaG8h55w4JR JA6O8XXbAzxwbYO
BogWeaRFYbw798i 4uuxezt9Sy5TCKq 6Xr2MZHgg6UyKbt snzbfhjFooUAfeS
Yqb7xevFOCQg1jf TxpuiM9LJNVpSr2 WfOKKD5ZwPgOqRe J9vh7hLOEudMiBk
7DeEgYWOeg8BusI X3GITRBQWRIwx9e roIVV0aLMzWSiL.
END MESSAGE.

Keybase proof

I hereby claim:

  • I am rianmcguire on github.
  • I am rmcguire (https://keybase.io/rmcguire) on keybase.
  • I have a public key ASAA7GXLYKi1IeC_eEY1enhhX9MJtXSbxUf5ESVSVonvYQo

To claim this, I am signing this object:

#!/usr/bin/env python
# Merge heart rate data from a Garmin TCX file into a GPX track. Result is suitable to upload to Strava.
import sys
import xml.etree.ElementTree as ET
import dateutil.parser
def get_tcx_trackpoints(tcx):
return tcx.findall('.//{http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2}Trackpoint')