Skip to content

Instantly share code, notes, and snippets.

View teto's full-sized avatar
👹
wrecking havoc

Matthieu Coudron teto

👹
wrecking havoc
  • /nix/store/candies
View GitHub Profile
blueprint:
name: Zigbee2MQTT - Sonoff ZBM5-3C (Handles Repeats)
description: "Handles toggle_l1, toggle_l2, and toggle_l3 presses from a Sonoff ZBM5-3C switch, including repeated presses of the same button. L1, L2, and L3 need to be in detached mode."
domain: automation
input:
mqtt_topic:
name: MQTT Topic of Device
description: The full MQTT action topic for the device (e.g. zigbee2mqtt/sonoff_switch/action)
default: "zigbee2mqtt/dummy_device/action"
selector:
@teto
teto / string-conversions.hs
Created October 21, 2020 10:30 — forked from dino-/string-conversions.hs
A handy illustration of converting between String, Text and ByteString in Haskell
#! /usr/bin/env stack
-- stack --resolver lts-12.14 script
{-# LANGUAGE OverloadedStrings #-}
{-
This is a handy illustration of converting between five of the commonly-used
string types in Haskell (String, ByteString, lazy ByteString, Text and lazy
Text).
@teto
teto / Hyperlinks_in_Terminal_Emulators.md
Created February 6, 2019 09:26 — forked from egmontkob/Hyperlinks_in_Terminal_Emulators.md
Hyperlinks in Terminal Emulators