Skip to content

Instantly share code, notes, and snippets.

@bruvv
bruvv / world-cup-2026-kiosk.user.js
Last active June 18, 2026 10:19
world-cup-2026-kiosk.user.js
// ==UserScript==
// @name Home Assistant World Cup 2026 Kiosk
// @namespace https://github.com/bruvv
// @version 1.5.1
// @description Wisselt automatisch tussen World Cup 2026-tabs, verbergt ongewenste onderdelen en herstelt bij navigatieproblemen.
// @author bruvv
// @match *://homeassistant.local:8123/world-cup-2026*
// @match *://homeassistan.local:8123/world-cup-2026*
// @updateURL https://gist.githubusercontent.com/bruvv/94c2df5c745a8be6c685854f8b56de22/raw/world-cup-2026-kiosk.user.js
// @downloadURL https://gist.githubusercontent.com/bruvv/94c2df5c745a8be6c685854f8b56de22/raw/world-cup-2026-kiosk.user.js
@bruvv
bruvv / chatgpt-delete-old-chats.user.js
Last active June 16, 2026 20:47
Soft-delete ChatGPT conversations older than x months via backend API.
// ==UserScript==
// @name ChatGPT Soft-Delete Chats Older Than x Months
// @namespace https://chatgpt.com/
// @version 1.3.0
// @description Preview and soft-delete ChatGPT conversations older than a configurable number of months.
// @match https://chatgpt.com/*
// @match https://chat.openai.com/*
// @homepageURL https://gist.github.com/bruvv/c25a168271f7bda197b9a0422fdb80aa
// @supportURL https://gist.github.com/bruvv/c25a168271f7bda197b9a0422fdb80aa
// @updateURL https://gist.githubusercontent.com/bruvv/c25a168271f7bda197b9a0422fdb80aa/raw/chatgpt-delete-old-chats.user.js
@bruvv
bruvv / m5_airstack.yml
Created August 6, 2025 19:04
M5 AirQ esphome
substitutions:
devicename: lounge-airq
friendlyname: Lounge AirQ
location: Lounge
sensor_interval: 10s
esphome:
name: ${devicename}
friendly_name: ${friendlyname}
area: ${location}
@bruvv
bruvv / android tv state detection rule
Created April 19, 2025 17:43
android tv state detection rule for home assistant
# adb-state-detection-rules-home-assistant
see: https://www.home-assistant.io/integrations/androidtv#custom-state-detection
Because netflix has "previews" make sure to have a 15 second time-out to double check that the movie is playing or the preview is playing.
```json
"state_detection_rules": {
"com.android.vending": [
"idle"
],
@bruvv
bruvv / recyclarr.yml
Last active September 5, 2024 12:13
Recyclarr config
# yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/config-schema.json
# A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
# values below as needed for your instance. You will be required to update the API Key and URL for
# each instance you want to use.
#
# Many optional settings have been omitted to keep this template simple. Note that there's no "one
# size fits all" configuration. Please refer to the guide to understand how to build the appropriate
# configuration based on your hardware setup and capabilities.
#
@bruvv
bruvv / home-assistant_plant-moisture-notification.yaml
Created May 6, 2023 19:24
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors based on https://community.home-assistant.io/t/plant-moisture-notification/369425
blueprint:
name: Low moisture level detection & notification for all plant sensors
description: Regularly test all plant sensors with 'moisture' crossing
under their threshold.
domain: automation
input:
threshold:
name: Water warning level threshold
description: Water sensors below threshold are assumed to be low-Water (as
well as binary battery sensors with value 'on').
@bruvv
bruvv / free_ports.sh
Created May 1, 2022 09:05 — forked from hjbotha/free_ports.sh
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6/7. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
# Run this script as root
@bruvv
bruvv / KPN IPV6 with UDM (pro).md
Last active September 21, 2021 10:43
Fix KPN ipv6 with UDM (pro)
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'
@bruvv
bruvv / sync_trv_with_external_temp_sensor.yaml
Last active April 27, 2026 07:37
Sync TRV with external sensor blueprint
blueprint:
name: Sync TRV temperature
description: Sync external temperature sensor with TRV temperature
domain: automation
input:
ieeeaddressoftrv:
name: IEEE Address
description: This is the address of the TRV found in your zigbee database example 0x459877fffe1f2e83
external_temp:
name: Select the external temp sensor