Skip to content

Instantly share code, notes, and snippets.

@creedda
creedda / volume-state-sync.yaml
Last active December 28, 2023 23:16
Sync Volume between two Media Players
blueprint:
name: Synchronize Audio Volume
description: Synchronize the volume of 2 entities
domain: automation
input:
entity_1:
name: First entity
selector:
entity: {}
entity_2:
@creedda
creedda / light-state-sync.yaml
Last active January 20, 2025 12:20 — forked from fireboy1919/light-state-sync.yaml
Synchronize States Between Two Lights
blueprint:
name: Synchronize brightness states and rgb states
description: Synchronize the on/off state of 2 entities
domain: automation
input:
entity_1:
name: First entity
selector:
entity: {}
entity_2:
@fireboy1919
fireboy1919 / light-state-sync.yaml
Last active August 11, 2024 16:12
Synchronize States Between Two Lights
blueprint:
name: Synchronize brightness states
description: Synchronize the on/off state of 2 entities
domain: automation
input:
entity_1:
name: First entity
selector:
entity: {}
entity_2:
@RichardBronosky
RichardBronosky / touchid_sudo.sh
Last active July 6, 2025 17:12
Use TouchID for sudo on modern MacBook Pro machines
#!/bin/bash
# curl -sL https://gist.githubusercontent.com/RichardBronosky/31660eb4b0f0ba5e673b9bc3c9148a70/raw/touchid_sudo.sh | bash
# This script is ready to copy-paste in whole, or just the line above (without the leading #)
# Use TouchID for sudo on modern MacBook Pro machines
# This script adds a single line to the top of the PAM configuration for sudo
# See: https://apple.stackexchange.com/q/259093/41827 for more info.
touchid_sudo(){
@hjbotha
hjbotha / free_ports.sh
Last active December 10, 2025 18:53
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.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx