Skip to content

Instantly share code, notes, and snippets.

@emosenkis
emosenkis / ignore.sh
Created May 11, 2022 12:28
Ignore all the mypy errors
mypy . | (echo 'set -ex'; grep ']$' | sed -r 's/^([^:]+):([0-9]+).*\[([a-z-]+)\]$/sed -i "\2s@.*@\\0 # type: ignore[\3]@" \1/' | uniq ) | bash
### Keybase proof
I hereby claim:
* I am emosenkis on github.
* I am emosenkis (https://keybase.io/emosenkis) on keybase.
* I have a public key ASBiJNwpieJ-NFn4T0Z0kUtcOeWzNH66CQDABibjDrvOYgo
To claim this, I am signing this object:
@emosenkis
emosenkis / outside-lights.yaml
Created December 23, 2020 21:55
ESPHome configuration for turning on a Sonoff TH10/TH16 from sunset to 2AM with minimal dependency on the network
substitutions:
off_hour: '2'
esphome:
name: outside_lights
platform: ESP8266
board: esp01_1m
on_boot:
- wait_until:
condition: api.connected