Skip to content

Instantly share code, notes, and snippets.

View blizzrdof77's full-sized avatar

Ben Wagner blizzrdof77

View GitHub Profile
@blizzrdof77
blizzrdof77 / strmod
Last active August 26, 2023 21:41
String Modification Utility
#!/usr/bin/env bash
script_name='strmod'
script_title='String Modification Utility'
version=0.44.0
updated='2023-08-25'
if [ -f "$(which batcat)" ] && [ ! -z "$(which batcat)" ] && [ -z "$(which bat)" ]; then
BatCat="$(command -v batcat) --language=Manpage"
elif [ -f "$(which bat)" ] && [ ! -z "$(which bat)" ]; then
@tdiekel
tdiekel / automatic-turn-off.yaml
Last active January 12, 2024 02:14 — forked from JonTheNiceGuy/Turn Off Light After Time.yaml
Automatic light or switch turn off after time
blueprint:
name: Automatic light or switch turn off after time
description: 'Given a light entity, watch for it turning on, and then turn it off after a certain period of time.
Based on [Turn Off Light After Time](https://gist.github.com/JonTheNiceGuy/5ac636739165dd593030c0fed16eb618)
by JonTheNiceGuy'
domain: automation
input:
light_or_switch:
name: Light or switch
description: Select the light or switch to monitor and control