Skip to content

Instantly share code, notes, and snippets.

View dreadfullyposh's full-sized avatar

Jeremy Gimbel dreadfullyposh

View GitHub Profile
@dreadfullyposh
dreadfullyposh / Dockerfile
Created March 24, 2020 12:47
Example using Docker multi-stage builds
# Dev - name the stage with `as dev`
FROM confluxgroup/php-nginx:7.4 as dev
RUN add-apt-repository -y ppa:ondrej/php \
&& apt-get update -y \
&& apt-get install php7.4-sqlite3 -y \
&& rm -rf /var/lib/apt/lists/*
# Production - name the stage with `as prod`
FROM dev as prod
@dreadfullyposh
dreadfullyposh / automation.yaml
Created February 5, 2021 14:31
Home Assistant Single Automation for ZigBee devices that have multiple commands (e.g. buttons that support hold and double click)
alias: Aqara Button Handler
description: ''
trigger:
- platform: event
event_data:
device_ieee: '00:15:8d:00:06:36:dd:c1'
event_type: zha_event
condition: []
action:
- choose: