Skip to content

Instantly share code, notes, and snippets.

View darkliquid's full-sized avatar

Andrew Montgomery darkliquid

View GitHub Profile
darkliquid /
Created January 28, 2024 08:01
zha quirk for tuya presence sensor
## originally based on
### ( )
## with inspiration from
## and my own changes and additions
import math
from typing import Dict
from zigpy.profiles import zha
darkliquid / !
Last active May 23, 2024 04:55
Script for setting up my windows install. Run setup-windows.ps1

This is my desktop setup scripts for Windows. It installs a number of apps using scoops (in preference) and failing that, via chocolatey. It also makes a number of customisations and streamlining operations to Windows itself via registry changes and various powershell scripts, the most notable of which is the [Windows 10 Debloater][3] script.

After that, It sets up my [WSL][4] environment, and uses my [linux dotfiles repo][5] to customise that. The aim of this setup is to be a reasonably dev-friendly, secure windows environment with a ready-to-go linux environment setup via WSL. More customisations will be made as things like 'controlled folder access exceptions' and other things get discovered through usage.

darkliquid /
Created March 25, 2019 09:20
WSL: Try to run .exe versions if they exist and the non .exe version doesn't
# WSL: Try to run .exe versions if they exist and the non .exe version doesn't
command_not_found_handle() {
if cmd.exe /c "(where $1 || (help $1 |findstr /V Try)) >nul 2>nul && ($* || exit 0)"; then
return $?
if [ -x /usr/lib/command-not-found ]; then
/usr/lib/command-not-found -- "$1"
return $?
elif [ -x /usr/share/command-not-found/command-not-found ]; then
/usr/share/command-not-found/command-not-found -- "$1"
darkliquid / # httpd - 2018-08-28_10-54-18.txt
Created August 28, 2018 09:57
httpd on Ubuntu 18.04.1 LTS - Homebrew build logs
Homebrew build logs for httpd on Ubuntu 18.04.1 LTS
Build date: 2018-08-28 10:54:18
darkliquid / Config.ini
Created May 7, 2018 15:28
bug.n config
Config_rule_#20=Chrome_WidgetWin_1;.*Google Chrome;;1;0;0;0;1;0;
darkliquid / le-renew-webroot
Last active January 30, 2016 00:52 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx) - Single renew script to support multiple configs at once
for config_file in $config_files; do
darkliquid /
Last active October 5, 2017 15:05
Gingkoapp microscope games

Formatting Guidelines

Use ## for Period headings, ### for event headings, #### for scene headings. This way exporting to html/markdown/etc makes for nice vertical reading.

Append the tone to the card with a dash, then the tone in italics for light tones (e.g. - *Light*) or bold for dark tones (e.g. - **Dark**)

darkliquid / css-card.html
Last active August 29, 2015 14:15
gingko space theme css
body {
background: url(;
.cards {
background: rgba(0,0,0,.7);
color: #fff;
.columns .column .cards {
border :0;

Keybase proof

I hereby claim:

  • I am darkliquid on github.
  • I am darkliquid ( on keybase.
  • I have a public key whose fingerprint is AB5D 304C 78C2 6182 A1C2 15F7 E849 541B 6EF1 C36B

To claim this, I am signing this object: