Skip to content

Instantly share code, notes, and snippets.

View edwork's full-sized avatar
📲
Edworking

Ed Boal edwork

📲
Edworking
View GitHub Profile
@dglaude
dglaude / 1st_readme.txt
Last active April 28, 2024 12:40
Home Assistant Rainbow Loop with Ikea Tradfri RGB light
Please find below the various piece of code that together control my RGB light to loop in Rainbow.
Every two seconds, it change from one colour to another based on the value of the second.
So it compute 30 differents RGB value in a "circle", all with the same Saturation and Brightness both forced to 1.0
The transition from one colour to another is done in one seconds.
The name of my Tradfri RGB light bulb is "light.couleur"
A link to my video on Twitter:
https://twitter.com/DavidGlaude/status/1059596285991366657
@meineerde
meineerde / haproxy.cnf
Last active December 9, 2017 18:26
Example HAProxy config which selectively requires client certificates based on SNI "vhost"
listen tls
bind *:443
mode tcp
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
# deny clients not sending an SNI header in 5 seconds
tcp-request content reject
/*****************************************
* Read QSee/Zmodo cameras *
* Forward stream to FIFO pipe *
* Author: Daniel Osborne *
* Based on IP Cam Viewer by Robert Chou *
* License: Public Domain *
*****************************************/
/* Version history
* 0.41 - 2013-05-03