Skip to content

Instantly share code, notes, and snippets.

@gpbenton
gpbenton / boiler.py
Created October 4, 2020 17:31
appdaemon app to control boiler
import hassapi as hass
import datetime
#
# App to represent the boiler. It turns on and off periodically
# at the same times every day.
# Args
# morning_on
# morning_off
@gpbenton
gpbenton / pick_paste.sh
Created September 20, 2020 08:44
Select from copyq clipboard history using dmenu and paste the selected text
copyq read 0 1 2 3 4 5 6 7 8 9 10 | uniq | dmenu | xsel -ip && copyq paste
@gpbenton
gpbenton / gist:44250e59310f3d5201f4cc3c0e95aa7d
Last active April 8, 2019 11:03
i3wm configuration with vim keys shifted back to normal position
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@gpbenton
gpbenton / docker-compose.yaml
Created December 31, 2018 09:14
docker-compose for home assistant
version: '3.4'
services:
homeassistant:
container_name: homeassistant
user: "1000:1000"
ports:
- "8123:8123"
- "5353:5353" # for mDNS service discovery
- "1900:1900" # for upnp service discovery
image: homeassistant/home-assistant:latest