Skip to content

Instantly share code, notes, and snippets.

@hjbotha
hjbotha / free_ports.sh
Last active July 10, 2024 17:33
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
@fireboy1919
fireboy1919 / light-state-sync.yaml
Last active June 9, 2024 05:18
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:
@creedda
creedda / light-state-sync.yaml
Last active April 13, 2024 09:33 — 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:
@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: