Skip to content

Instantly share code, notes, and snippets.

@sahmeepee
sahmeepee / OpenRTL8710b pins
Created March 29, 2026 21:05
Pin configuration for Tuya Cloudcutter for "Excalibur" generic Tuya power monitoring smart plug
-- buttons to enter in the "Configure Module" settings of the OpenRTL8710b / OpenBeken software
-- Once these are set and it has been rebooted, you can start Home Assistant discovery for MQTT
PA0 - BL0937SEL --for power monitoring switching
PA5 - Btn,1,2 --1 for the normal hardware button press.
--2 could hypothetically perform some action on double-clicking
PA12 - LED_n,1 --for button LED (inverted so off when power off)
PA14 - BL0937CF --for power monitoring
PA15 - BL0937CF1 --for power monitoring
PA23 - Rel --for the relay itself
@sahmeepee
sahmeepee / playwright.config.js
Created June 20, 2021 18:55
Common Playwright Test Runner config settings
module.exports = {
use: {
// Browser options
headless: false, // Default: true
slowMo: 100, // in milliseconds, default: 0
//timeout: 60000, // Max time in milliseconds for browser to start. Default: 30000; Disable timeout: 0
//args: --disable-popup-blocking --disable-web-security // see https://peter.sh/experiments/chromium-command-line-switches/ for Chromium args
//channel: 'msedge' // "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", "msedge-canary"
//devtools: false, // true | false
@sahmeepee
sahmeepee / launch.json
Created June 20, 2021 18:05
VSCode setup for Playwright Test Runner - allows debug of current file
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch all tests 3 browsers",
"request": "launch",
"runtimeArgs": [
"run-script",
"tests3x"
],
@sahmeepee
sahmeepee / launch.json
Created June 18, 2021 22:57
VSCode basic setup for Playwright Test Runner
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch all tests",
"request": "launch",
"runtimeArgs": [
"run-script",
"tests"
],