Skip to content

Instantly share code, notes, and snippets.

View JGaudette's full-sized avatar

Jon Gaudette JGaudette

View GitHub Profile
resource "aws_ecs_cluster" "nonprod-web" {
name = "nonprod-cluster"
capacity_providers = ["FARGATE", "FARGATE_SPOT"]
}
resource "aws_cloudwatch_log_group" "web-api-dev" {
name = "/ecs/web-api-dev-task"
}
{"aggregateSeries":[{"date":"2018-09-02T00:00:00","totalValueForAllAccounts":2335337.5523,"accountGaidToValueMap":{"370010":2123554.3211,"3650605":211783.2312}},{"date":"2019-09-02T00:00:00","totalValueForAllAccounts":3435337.5523,"accountGaidToValueMap":{"370010":3123554.3211,"3650605":311783.2312}},{"date":"2020-09-02T00:00:00","totalValueForAllAccounts":4947120.7835,"accountGaidToValueMap":{"370010":4123554.3211,"370020":411783.2312,"3650605":411783.2312}},{"date":"2020-09-05T00:00:00","totalValueForAllAccounts":4876722.6233,"accountGaidToValueMap":{"370010":4062884.2941,"370020":406919.1646,"3650605":406919.1646}},{"date":"2020-09-06T00:00:00","totalValueForAllAccounts":4834024.7944,"accountGaidToValueMap":{"370010":4027231.9744,"370020":403396.41,"3650605":403396.41}},{"date":"2020-09-07T00:00:00","totalValueForAllAccounts":4879445.0798,"accountGaidToValueMap":{"370010":4061718.849,"370020":408863.1154,"3650605":408863.1154}},{"date":"2020-09-08T00:00:00","totalValueForAllAccounts":4958717.1911,"accountG
@JGaudette
JGaudette / plink-plonk.js
Created February 15, 2020 12:42 — forked from tomhicks/plink-plonk.js
Listen to your web pages
@JGaudette
JGaudette / plink-plonk.js
Created February 15, 2020 12:42 — forked from tomhicks/plink-plonk.js
Listen to your web pages
{
"pershingOffline": "true",
}
@JGaudette
JGaudette / hallway.py
Last active July 27, 2019 01:58
Automatically dim the motion-sensor lights between 8pm and 6am
import datetime
import time
import flux_led
import sys
def scanAndSet():
lightlevel = 100
dt = datetime.datetime.now()
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="input over <everything></everything>">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#container{
width: 200px;
@JGaudette
JGaudette / makeJsonPretty.user.js
Last active November 13, 2023 07:42
Greasemonkey Script to format JSON
// ==UserScript==
// @name Make JSON Pretty
// @version 0.1
// @description Make JSON look nice
// @author Jon Gaudette <jgaudette@gmail.com>
// @include *.json
// @grant none
// ==/UserScript==
function prettySource(obj) {
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<style id="jsbin-css">
#base{
padding:10px;
background:#eee;
@JGaudette
JGaudette / mysql_repl_status.sh
Created January 7, 2011 13:29
MySQL Replication Health/Status
#!/bin/bash
#
# Determine if master and slave mysql servers are in sync
# If not, report it via STDOUT and non-zero return code
# If are in sync, exit successfully
#
# Paramters:
# -v - verbose, show stats even if 100% synchronized
USER='YOUR_USER_NAME'