This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import json | |
import urllib2 | |
import webbrowser | |
from urllib import urlencode | |
import boto3 | |
parser = argparse.ArgumentParser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Get-Command "powershell" -ErrorAction SilentlyContinue) { | |
$powershell = "powershell" | |
} else { | |
$powershell = "pwsh" | |
} | |
& $powershell -Command { | |
Set-StrictMode -Version 2.0 | |
Import-Module AWSPowerShell.NetCore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
randomPort="$((49152 + ($RANDOM % 16383)))" | |
function cleanup_jobs() { | |
for i in $(jobs -p); do | |
pkill -P $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dateToLocalISOString(date) { | |
const tzOffsetMins = date.getTimezoneOffset(); | |
const tzString = (-tzOffsetMins*100/60).toString(); | |
let tzPrefix = ""; | |
if (tzOffsetMins === 0) { | |
return date.toISOString() | |
} else if (tzOffsetMins < 0) { | |
tzPrefix = "+"; | |
} else { | |
tzPrefix = "-"; |