Skip to content

Instantly share code, notes, and snippets.

View topperge's full-sized avatar

Matt Topper topperge

View GitHub Profile
@blizzrdof77
blizzrdof77 / zha-moes-zigbee-rotary-smart-knob-remote-control.yaml
Last active April 26, 2024 04:50
ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices
description: Control remotes (e.g. volume up/down) with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, rotating left, and rotating right.
domain: automation
source_url: https://gist.github.com/blizzrdof77/c30c388ca5f4ce7ed72752296767417d
input:
remote:
name: Smart Knob Device
description: Moes Tuya Smart Knob Device to use
selector:
@alufers
alufers / verify_script.js
Created September 27, 2021 14:51
DHL Tracking page bot protection
/** @type {!Array} */
var _ac = [
"Microsoft Tai Le",
"indexedDbKey",
"opera",
"hypot",
"click",
"touchstart",
"$chrome_asyncScriptInfo",
"clearCache",
@sacdroid
sacdroid / yaml
Created August 31, 2021 19:01
tv time automation
sensor:
- platform: history_stats
name: TV Time Morning
entity_id: media_player.android_tv
state: 'playing'
type: time
start: "{{ now().replace(hour=6).replace(minute=0).replace(second=0) }}"
duration:
hours: 12
- platform: history_stats

Getting started with your BX

Congratulations on becoming a BX owner. You have in your posession one of the most capable 3D printers in its class with some unique features that you will not even find on other, more costly machines.

Despite the capabilities of the machine, it will only be able to perform well if you take the time to carefully ensure that the mechanics are well put together. Fortunately the BX is a very simple machine to assemble so if you follow this guide carefully you will not have any problems.

Installing the uprights

The BX comes with the frame already pre-assembled. All you will need to do is align it with the base and insert four bolts to hold it in place. Unfortunately the process involved in trimming the aluminium extrusions to length at the factory does not always result in a perfect, 90 degree cut. This means that after you fasten the uprights in place they may not be at 90 degrees to the base.

@wallyqs
wallyqs / nats-server-and-spiffe.md
Last active March 30, 2024 01:57
NATS Server + SPIFFE

Start the server with SPIFFE SVID Auth enabled:

git clone https://github.com/nats-io/nats-server
cd nats-server/test/configs/certs/svid

wget https://gist.githubusercontent.com/wallyqs/f2479312079afb04b83ad6b90aa8bca1/raw/c2ae6949807bb9cd090ebff0bcff3fc1b62c42e3/svid-auth.conf
wget https://gist.githubusercontent.com/wallyqs/f2479312079afb04b83ad6b90aa8bca1/raw/747a3a5fe74887f0b9a23d2ac9e99182fa9dd971/svid-a.go
docker run -v $(pwd):/conf -p 4222:4222 wallyqs/nats-server:2.1.7-spiffe --config /conf/svid-auth.conf -DV
@sethcohn
sethcohn / code.py
Created August 10, 2017 23:46
Quick and dirty fire for neopixels in circuitpython
# not a great one, but it works, and it's tweakable. You'll need to add imports and tweak values
strand = neopixel.NeoPixel(NEOPIXEL, 10, 3, 1, False)
while True:
r = 226
g = 121
b = 35
#Flicker, based on our initial RGB values
for i in range (0, len(strand)):