Skip to content

Instantly share code, notes, and snippets.

@kevin-david
kevin-david / airgradient-02.yaml
Last active July 18, 2024 01:36
AirGradient DIY: ESPHome with Sleep (extend PM2.5 sensor lifetime)
##
## See https://github.com/kevin-david/home-assistant-shared/blob/main/esphome/airgradient.yml for future updates
##
substitutions:
name: airgradient-02
### Everything below this can be copy/paste between similar devices
esphome:
name: $name
@sivachandran
sivachandran / SimpleTcpRedirector.py
Created March 4, 2012 01:42
A simple TCP redirector in python
#!/usr/bin/env python
import socket
import threading
import select
import sys
terminateAll = False
class ClientThread(threading.Thread):