Skip to content

Instantly share code, notes, and snippets.

@handcoding
handcoding / Ashley’s Light Fader.yaml
Last active July 14, 2026 06:58
This script for Home Assistant will fade a lamp over time with your choice of easing, including varieties of ease-in, ease-out, and ease-in-out.
alias: Ashley’s Light Fader
description: >
Fades a lamp over time. If you have any questions or comments about this
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under
the Apache 2.0 license. (v2.01)
fields:
light:
name: 💡 Light
description: entity_id of the lamp.
selector:
@bartoszmajsak
bartoszmajsak / prepare-commit-msg.sh
Last active June 8, 2026 11:51
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"