Skip to content

Instantly share code, notes, and snippets.

View benoitc's full-sized avatar

Benoit Chesneau benoitc

View GitHub Profile
blueprint:
domain: automation
name: Controlling lights using Philips Hue Dimmer Switch (RWL022)
description: Take the swith fast into use with pre-set configuration.
input:
zha_device:
name: Philips Hue Dimmer Switch (RWL022 only)
description: The swith to be taken into use.
selector:
device:
blueprint:
domain: automation
name: Controlling lights using Philips Hue Dimmer Switch (RWL022)
description: Take the swith fast into use with pre-set configuration.
input:
zha_device:
name: Philips Hue Dimmer Switch (RWL022 only)
description: The swith to be taken into use.
selector:
device:
#!/usr/bin/env escript
%%% This script converts an arbitrary binary file to an Erlang module with a
%%% single exported 'bin/0' function that returns the original binary.
%%%
%%% See the end of the file for how I figured out the correct terms.
main(["+debug_info" | Files]) ->
io:format("Embedding binaries with debug_info...\n"),
lists:foreach(fun(X) -> embed_file_in_beam(X, [debug_info]) end, Files);
From f4e7c10492b7b6f6fd805d4059eb44c4ae8eaa8e Mon Sep 17 00:00:00 2001
From: benoitc <bchesneau@gmail.com>
Date: Sun, 22 Dec 2013 08:44:38 +0100
Subject: [PATCH 1/2] add hackney dependency
---
rebar.config | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/rebar.config b/rebar.config
Mar 26 19:24:29 Benoit-Chesneaus-iPad SpotMeApp[653] <Notice>: stdout:
=ERROR REPORT==== 26-Mar-2012::19:24:29 ===
** Generic server <0.172.0> terminating
** Last message in was delayed_commit
** When Server state == {db,<0.171.0>,<0.172.0>,nil,<<"1332781452099921">>,
<0.166.0>,<0.173.0>,
{db_header,6,528,0,
{6435190,{426,0,5859423},52419},
{6471288,426,22630},
{6275330,[],545},
test
@benoitc
benoitc / gist:1163616
Created August 22, 2011 21:18 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: web craftsman doing opensource development
Favorite Python project: my own project? gunicorn or couchapp
Favorite Conference: pycon
Python Experience Level: Expert
# Copypasta of Django's runserver management command, modified to use gunicorn http://github.com/benoitc/gunicorn
import os
import signal
import sys
import threading
import time
from optparse import make_option