Skip to content

Instantly share code, notes, and snippets.

View neechbear's full-sized avatar
💭
Moved to https://gitlab.com/nicolaw

Nicola Worthington neechbear

💭
Moved to https://gitlab.com/nicolaw
View GitHub Profile
@neechbear
neechbear / 1 Person Multi-Zone Change - Dual Notification.yaml
Last active September 14, 2021 05:15
1 Person Multi-Zone Change - Dual Notification
blueprint:
name: 1 Person Multi-Zone Change - Dual Notification
description: Send a notification to a device when a person enters a different zone.
domain: automation
input:
# Person/Device that will be tracked
person_entity:
name: Person
description: Person/Device that will be tracked.
selector:
@neechbear
neechbear / imdb.sh
Last active June 5, 2022 21:44
Playing around with a pure-ish bash IMDB-ish client for fun
#!/usr/bin/env bash
set -Eeuo pipefail
trap 'declare rc=$?;
>&2 echo "Unexpected error executing $BASH_COMMAND at ${BASH_SOURCE[0]} line $LINENO";
exit $rc' ERR
join () {
local IFS="$1"; shift
@neechbear
neechbear / test-sh.log
Created May 16, 2018 11:41
gs-5487 test.sh output
nicolaw@laptop:~/Coding/gs-5487 $ env -i PATH=/Users/Nicola/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin HOME=~ ./test.sh
+ export TF_LOG=TRACE TF_LOG_PATH=terraform.log
+ TF_LOG=TRACE
+ TF_LOG_PATH=terraform.log
+ env
TF_LOG_PATH=terraform.log
TF_LOG=TRACE
PATH=/Users/Nicola/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin
PWD=/Users/Nicola/Coding/gs-5487
SHLVL=1
@neechbear
neechbear / terraform.log
Created May 16, 2018 11:34
gs-5487 terraform.log
2018/05/16 12:31:33 [INFO] Terraform version: 0.11.7
2018/05/16 12:31:33 [INFO] Go runtime version: go1.10.1
2018/05/16 12:31:33 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.7/bin/terraform", "init"}
2018/05/16 12:31:33 [DEBUG] Attempting to open CLI config file: /Users/Nicola/.terraformrc
2018/05/16 12:31:33 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/05/16 12:31:33 [INFO] CLI command args: []string{"init"}
2018/05/16 12:31:33 [DEBUG] command: loading backend config file: /Users/Nicola/Coding/gs-5487
2018/05/16 12:31:33 [INFO] command: empty terraform config, returning nil
2018/05/16 12:31:33 [DEBUG] command: no data state file found for backend config
2018/05/16 12:31:33 [DEBUG] New state was assigned lineage "1243adde-b995-b7cc-c777-54f0bb7e72c6"
@neechbear
neechbear / .emacs
Created March 12, 2018 15:52 — forked from node13h/.emacs
.emacs for Python development
;;; package --- Summary
;;; Commentary:
;;;
;;; Code:
;;;
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.