Skip to content

Instantly share code, notes, and snippets.

#0 boot (not used)
#1 tx (not used)
#2 led status (not used)
#3 rx (not used)
#4 status neopixel
#5 dallas
#16 thermostat O
#17 thermostat Y
#18 (not used)
#19 outdoor W
#!/bin/bash
#
# Author: Ryan Kernan
# Date: September 23, 2011
# Version: 1.0
# Credits: Mike La Spina for the original concept and script http://blog.laspina.ca/
#
# Expanded on by Patrick Domack
#
# Function: Provides snapshot and send process which replicates ZFS file systems from a source to target server.
# Patrick Domack
# Base taken from Orion Anderson https://misterorion.com/lambda-update-ami/
# https://github.com/ranman/awesome-sns/blob/master/Events.md#windows-ami-update
# https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/aws-windows-ami.html#subscribe-notifications
import boto3, os, json
from datetime import datetime, timezone, timedelta
def lambda_handler(event, context):