Skip to content

Instantly share code, notes, and snippets.

View reid's full-sized avatar

Reid Burke reid

View GitHub Profile
@reid
reid / verify_unifi_access_entry.py
Created July 26, 2023 22:11
Respond to successful UniFi Access door entry from NFC or PIN codes using Pyscript and Home Assistant
'''
Copyright 2023 Reid Burke <reid@reidburke.com>
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@reid
reid / machine.js
Created November 17, 2020 18:57
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@reid
reid / machine.js
Last active November 13, 2020 20:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@reid
reid / machine.js
Created November 13, 2020 19:46
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@reid
reid / example_laundry_automation.yaml
Created October 11, 2018 21:19
Announce on Google Home when laundry is done
# Using Home Assistant 0.79.3
discovery: # Discover Google Home devices
# TP-Link TS110
switch:
- platform: tplink
name: "Washer"
host: 10.0.1.150
- platform: tplink
@reid
reid / keybase.md
Created March 16, 2016 04:29
Keybase proof

Keybase proof

I hereby claim:

  • I am reid on github.
  • I am reid (https://keybase.io/reid) on keybase.
  • I have a public key ASCW6GhT4gI64-pG6Qg0rFmukv0ZM7aJy0uw1sI3SaRROQo

To claim this, I am signing this object:

@reid
reid / again.js
Created October 15, 2014 21:22
setTimeout IEFE
(function again() {
console.log("hello again!");
setTimeout(again, 1000);
}());
@reid
reid / install.sh.log
Created October 8, 2014 21:38
Failure to run chef-dev-setup because of outdated rvm versions
Installing Ruby from source to: /Users/reid/.rvm/rubies/ruby-2.1.2, this may take a while depending on your cpu(s)...
ruby-2.1.2 - #downloading ruby-2.1.2, this may take a while depending on your connection...
To install do: 'rvm install ruby-2.1.2'
rvm rubies
ruby-1.9.3-p448 [ x86_64 ]
# Default ruby not set. Try 'rvm alias create default <ruby>'.
@reid
reid / yeti-last-known-good-npm-ls.txt
Created August 21, 2014 22:37
Last known good npm dependencies for Yeti
yeti@0.2.29 /Users/reid/Development/yeti
├── async@0.9.0
├── echoecho@0.1.9
├── eventemitter2@0.4.13
├── eventyoshi@0.1.6
├─┬ glob@3.2.10
│ └── inherits@2.0.1
├── graceful-fs@2.0.3
├─┬ istanbul@0.2.10
│ ├── abbrev@1.0.5