This file contains hidden or 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
#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 |
This file contains hidden or 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
#!/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/ | |
# | |
# Function: Provides snapshot and send process which replicates ZFS file systems from a source to target server. | |
# Maintains a runing snapshot archive for X days (X being the value of keep_snaps). | |
# |
This file contains hidden or 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
# 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): |
OlderNewer