Skip to content

Instantly share code, notes, and snippets.

View taschik's full-sized avatar

Daniel Taschik taschik

View GitHub Profile
@taschik
taschik / ts0601.py
Created January 21, 2026 16:30
ts0601 TZE284_rlytpmij ZHA Quirk
# Moes/Tuya TS0601 (_TZE284_rlytpmij) — ZHA quirk
# Based on zigbee2mqtt converter with all sensors and improved reliability
# Exposes: Climate, Floor Temperature, Valve State, and other sensors
import logging
from enum import Enum
from typing import Any, Optional
from zigpy.quirks import CustomDevice
from zigpy.profiles import zha
from zigpy.zcl.clusters.general import Basic, Identify, PowerConfiguration, Ota, Groups, Scenes, OnOff
@taschik
taschik / java
Created October 29, 2018 16:26
Instabug Android SDK Crash
# Crashlytics - plaintext stacktrace downloaded by Mobile myCrew Admin at Mon, 29 Oct 2018 16:25:39 GMT
# URL: https://fabric.io/mycrew3/android/apps/com.mycrew/issues/5bb65728f8b88c2963872f51/sessions/latest?build=90013754
# Organization: myCrew
# Platform: android
# Application: myCrew
# Version: 1.8 (2996)
# Bundle Identifier: com.mycrew
# Issue #: 23
# Issue ID: 5bb65728f8b88c2963872f51
# Session ID: 5BD4EC78009700016F8FB7A3562E1738_DNE_0_v2
@taschik
taschik / README.md
Last active June 27, 2018 02:59
pycodestyle and pyflakes git hook

Requirements

  • Python >= 3.x
  • pycodestyle
  • pyflakes

Installation

cd path/to/repository/
@taschik
taschik / README.md
Created June 27, 2018 02:57
pycodestyle and pyflakes git hook

Requirements

  • Python >= 3.x
  • pycodestyle
  • pyflakes

Installation

cd path/to/repository/
@taschik
taschik / keybase.md
Created August 10, 2016 14:52
keybase.md

Keybase proof

I hereby claim:

  • I am taschik on github.
  • I am taschik (https://keybase.io/taschik) on keybase.
  • I have a public key whose fingerprint is 5FBF D53F 0C64 E00A 4331 0FB2 B17D 325F 928B 2913

To claim this, I am signing this object:

@taschik
taschik / firesheep handlers
Created November 8, 2012 16:22
working firesheep site handlers
register({
name: 'Stack Overflow',
url: 'http://stackoverflow.com/',
domains: [ 'stackoverflow.com' ],
sessionCookieNames: [ 'usr', '__utmz', '__utma' , '__qca' ],
identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
this.userName = resp.body.querySelectorAll('a')[3].textContent;
}
@taschik
taschik / webpack_cleanup.py
Created November 3, 2012 17:10
Script to mass-clean up infected php files
# -*- coding: utf-8 -*-
import re, sys, os
def query_yes_no_quit(question, default="yes"):
"""Ask a yes/no/quit question via raw_input() and return their answer.
"question" is a string that is presented to the user.
"default" is the presumed answer if the user just hits <Enter>.