Skip to content

Instantly share code, notes, and snippets.

View roelbroersma's full-sized avatar

Roel Broersma roelbroersma

View GitHub Profile
@roelbroersma
roelbroersma / Multipin relay support in WLED (0.11)
Last active November 4, 2023 16:25
Multipin relay support in WLED (change usermods/esp32_multistrip/NpbWrapper.h )
Add the following code in usermods/esp32_multistrip/NpbWrapper.h after:
#ifndef RLYPIN
#define RLYPIN -1 //pin for relay, will be set HIGH if LEDs are on (-1 to disable). Also usable for standby leds, triggers,...
#endif
#ifndef RLYPIN2
#define RLYPIN2 -1 //pin for relay2, will be set HIGH if LEDs are on (-1 to disable). Also usable for standby leds, triggers,...
#endif
@roelbroersma
roelbroersma / Synology_Hide_Folders_Ending_With_-1.sh
Created March 27, 2024 12:11
When using Synology Snapshots and replicating these to another local volume, those snapshots (ending with ...-1) will automatically be visible (read-only) on the network. You can set 'Hide this folder in My Network locations' but every thime after replicating, it will again show them. You can schedule the script below just after replicating, it …
#!/bin/bash
# Script to set 'browseable=no' for specific Samba shares ending with -1
# Author: Roel Broersma
# Description: This script modifies the smb.share.conf file to set 'browseable=no'
# for all shares ending with -1, provided the 'browseable' option
# is already defined within the section. It then checks the Samba
# configuration for syntax errors and reloads the configuration.
# Version: 1.0
# Date: 27 March 2024