Skip to content

Instantly share code, notes, and snippets.

@mayerwin
mayerwin / nest-wifi-point-as-speaker-only.md
Created May 8, 2026 05:28
Use a Google Nest Wifi point as a smart speaker only, no mesh

Using a Google Nest Wifi point as a smart speaker only (no mesh)

Yes, this actually works. The Nest Wifi point can be set up as a standalone Google Assistant / Cast speaker — much like a Nest Audio — without joining a Nest Wifi mesh and without broadcasting any Wi-Fi of its own. It joins your existing Wi-Fi (any router, doesn't need to be Google) like any other Cast device.

A lot of community advice insists this isn't possible, that you need a separate Google Home structure, or that it only fails with a "cannot connect to router" error. That advice is incomplete. The procedure below has been confirmed to work; the key is declining the pairing prompt with the base router, which exposes a "set up as a standalone speaker" branch that the setup flow otherwise hides.

Credit to the original discussion that documented this approach: https://www.reddit.com/r/GoogleWiFi/comments/mb173e/google_nest_wifi_point_as_speaker_only/.

What you need

@mayerwin
mayerwin / reolink-tts-gist.md
Last active April 22, 2026 04:16
Playing audio and TTS through Reolink cameras via Home Assistant
@mayerwin
mayerwin / Convert-Mp3ToWem.ps1
Created March 2, 2026 03:21
PowerShell script to batch-convert MP3 files to Wwise .wem format using ffmpeg + WwiseConsole.exe, with two-pass EBU R128 loudness normalization
#Requires -Version 5.1
<#
.SYNOPSIS
Converts all MP3 files in a folder to Wwise Encoded Media (.wem) files.
.DESCRIPTION
Uses ffmpeg to convert MP3 to WAV, then WwiseConsole.exe convert-external-source
to produce .wem files.
PREREQUISITES:
@mayerwin
mayerwin / README.md
Last active February 13, 2026 20:48
SwitchBot Webhook Deletion Tool (PHP Single-File)

Description

A standalone, single-file PHP tool to easily delete SwitchBot API Webhooks.

This script solves two common pain points when working with the SwitchBot API:

  1. CORS Errors: It acts as a server-side proxy, bypassing browser Cross-Origin Resource Sharing (CORS) restrictions.
  2. Authentication Complexity: It automatically generates the required HMAC-SHA256 signature (sign), nonce, and timestamp (t) headers required for SwitchBot API v1.1.

Features

@mayerwin
mayerwin / ScheduleAutoStart.ps1
Last active July 28, 2025 07:59
Schedule Crafty (and optionally Duplicati) to auto‑start at user logon.
<#
.SYNOPSIS
Registers one or more user‐level applications to launch automatically at logon.
.DESCRIPTION
ScheduleAutoStart.ps1 creates Scheduled Tasks under “\ScheduleAutoStart\” for each
entry defined in the `$apps` array. By default it installs a task to launch Crafty
at the current user’s interactive logon. It can optionally be extended (uncomment
the Duplicati line) to auto‑launch additional utilities.
@mayerwin
mayerwin / ScheduleAutoLogon.ps1
Last active July 28, 2025 07:48
Headless RDP auto‑logon at startup (Windows Server 2022+). Creates a hidden FreeRDP connection at boot (to fire user logon triggers), then kills it after 60 s. Stores creds securely in Credential Manager.
<#
.SYNOPSIS
Installs (or uninstalls) a headless RDP‐at‐startup scheduled task and optional per‑user logon tasks.
.DESCRIPTION
When run without -Disable, this script:
• Ensures it’s elevated to Administrator.
• Stores (or reuses) RDP credentials in Windows Credential Manager.
• Downloads the FreeRDP client (if not already present) to .\bin\sdl3‑freerdp.exe.
• Registers a “HeadlessRdp_Bootstrap” task under \ScheduleAutoLogon\ that, at system startup,
@mayerwin
mayerwin / trakt-backup.php
Created February 11, 2019 02:41 — forked from darekkay/trakt-backup.php
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";
@mayerwin
mayerwin / .htaccess
Created May 12, 2016 19:34 — forked from jdevalk/.htaccess
These three files together form an affiliate link redirect script.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
</IfModule>
@mayerwin
mayerwin / test_test.py
Created March 18, 2016 09:01
Sample unittest module for "Run a specific unit test function inside PyCharm IDE 5.0.4" question (http://stackoverflow.com/questions/36079152/run-a-specific-unit-test-function-inside-pycharm-ide-5-0-4)
import unittest
import pytest
from unittest import TestCase
# http://stackoverflow.com/questions/1323455/python-unit-test-with-base-and-sub-class
class BaseTestCases:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Threading;
using System.Threading.Tasks;
using EnvDTE80;
using EnvDTE90a;