Skip to content

Instantly share code, notes, and snippets.

@mool
mool / ts0225_linptech.py
Last active April 23, 2024 15:48
ZHA quirck for Tuya TS0225_LINPTECH 24Ghz human presence sensor
"""Device handler for Tuya TS0225_LINPTECH 24Ghz human presence sensor."""
import logging
from typing import Dict
import zigpy.types as t
from zhaquirks.const import (DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS,
MODELS_INFO, OUTPUT_CLUSTERS, PROFILE_ID)
from zhaquirks.tuya import NoManufacturerCluster, TuyaNewManufCluster
from zhaquirks.tuya.mcu import DPToAttributeMapping, TuyaMCUCluster

Keybase proof

I hereby claim:

  • I am mool on github.
  • I am mool (https://keybase.io/mool) on keybase.
  • I have a public key ASDfEsp2bzROvR2iZ2TmwdZr503WhrOPXilX1VLtBzhiZQo

To claim this, I am signing this object:

@mool
mool / Dockerrun.aws.json.template
Created February 8, 2017 13:12
Elastic Beanstalk deploy
{
"AWSEBDockerrunVersion": "1",
"Authentication": {
"Bucket": "bucket_name",
"Key": "docker/dockercfg"
},
"Image": {
"Name": "company/<image>"
},
"Ports": [
@mool
mool / gist:8024499
Created December 18, 2013 15:42
binding alt+arrowkeys
bindkey '^[^[[C' forward-word
bindkey '^[^[[D' backward-word
knife xapi guest create "JController-04" "Network 0" -B "netcfg/get_hostname=jcontroller-04 console=hvc0 debian-installer/locale=en_US console-setup/layoutcode=us console-setup/ask_detect=false interface=eth0 netcfg/disable_autoconfig=true netcfg/get_ipaddress=192.168.1.104 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.1.2 netcfg/get_nameservers=172.16.0.2 netcfg/get_domain=sitrack.com preseed/url=http://172.16.0.2/preseed-ubuntu-12.04.cfg" -D 25g -C 2 -M 4g