Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Enbrighten 800 Series Z-Wave On/Off Paddle Switch
domain: automation
input:
zwave_device:
name: Switch
selector:
device:
integration: zwave_js
@victorlin
victorlin / ge_zw4005.yaml
Last active May 21, 2026 05:11 — forked from shannonfritz/ge_zw4005.yaml
GE 14291 / ZW4005 Home Assistant Blueprint
blueprint:
name: GE 14291 / ZW4005 Switch (Z-Wave JS) v0.01
description: Create automations for the GE Switches using the Z-Wave JS integration.
domain: automation
input:
ge_jasco:
name: Switch Device
description: 'List of available GE 14291 / ZW4005 switches
NOTE: This device does not have Z-Wave event for Single Tap up or down'
blueprint:
name: Inovelli LZW30-SN Hue Dimmer
description: >-
Use an Inovelli LZW30-SN Z-Wave JS switch to control Hue lights through
the philips-hue-smooth-dimmer custom integration.
domain: automation
input:
zwave_device:
name: Inovelli switch
description: The Inovelli LZW30-SN device from Z-Wave JS.
@victorlin
victorlin / copy-chromium-extensions.sh
Last active March 25, 2026 23:03
helper script to copy extension files from one Chromium profile to another
#!/usr/bin/env bash
# one column for `select`
COLUMNS=1
main() {
local source_profile
local ext_id
local dest
local profiles=()
@victorlin
victorlin / batch-review-dependabot
Last active March 4, 2026 00:49
Script to facilitate batched review of dependabot PRs.
#!/usr/bin/env bash
# Script to facilitate batched review of dependabot PRs
# Change these values
TITLE="actions/download-artifact"
COMMENT="Breaking change is an error instead of warning for hash mismatch. Should not impact existing usage."
gh search prs \
--state=open \
@victorlin
victorlin / speak-chinese-siri-shortcut.md
Created June 8, 2025 18:04
Read Chinese text from clipboard using the Shortcuts app

Read Chinese text from clipboard using the Shortcuts app

Apple's Siri voices sound very natural and are great for learning.

demo.mov

Steps to set up:

1. Download a Siri voice

@victorlin
victorlin / 1-webhook-summary.sh
Last active March 28, 2025 19:17
generate list of webhooks used by all repos under a github organization
ORG="nextstrain"
repos=$(gh api --paginate \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$ORG/repos?per_page=100" \
| jq -r '.[].name')
declare -A hook_repos
@victorlin
victorlin / 1_longest_tokens.py
Last active October 26, 2024 21:40 — forked from ctlllll/longest_chinese_tokens_gpt4o.py
Longest tokens per language in gpt4o
import iso639
import json
import langdetect
import tiktoken
REQUIRED_LANGUAGES = ["zh-cn"]
# Minimum for required languages
# Maximum for optional languages
TOKENS_PER_LANGUAGE = 20
@victorlin
victorlin / 1-icons.jpeg
Last active June 26, 2024 15:09
CenturyLink Adtran C424G device table icon options
1-icons.jpeg