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
| #!/usr/bin/env ruby | |
| #Pre-requisite: gem install mail (https://github.com/mikel/mail) | |
| require 'mail' | |
| mysql_username = 'root' | |
| mysql_password = '123456' | |
| mysql_database = 'your database' # consider use of ARGV | |
| file_suffix = Time.new.strftime('%Y%m%d_%H%M%S') | |
| mysql_backup_file = "backup-#{mysql_database}-#{file_suffix}.sql.gz" |
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
| from adafruit_debouncer import Button | |
| from adafruit_hid.mouse import Mouse | |
| import asyncio | |
| import board | |
| from digitalio import DigitalInOut, Direction, Pull | |
| import neopixel | |
| import random | |
| import usb_hid | |
| # Application setup |
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
| #ver. 1.0 | |
| blueprint: | |
| name: Pause HVAC HA v1.0 | |
| description: Pauses HVAC when windows/doors open; resumes last state once closed | |
| domain: automation | |
| source_url: https://gist.github.com/zlorfi/3942502fb0fffd8b55f5a014c2173cbd | |
| input: | |
| climate_device: | |
| description: Climate entity used for climate control. | |
| name: Climate Device |