Skip to content

Instantly share code, notes, and snippets.

@x1024
x1024 / woman.sh
Created November 8, 2016 12:33
"woman" shell command
function woman() {
if [ $# -eq 0 ]; then
man
else
man $1 | head -n `expr \`man $1 | wc -l\` \* 77 / 100 ` | $PAGER
fi
}
@x1024
x1024 / link_multiple_devices.yaml
Last active June 17, 2025 15:26 — forked from dbrand666/link_multiple_devices.yaml
Select multiple entities to link their on/off state. If any selected entity is turned on or off, the other selected entities will be sent a matching on or off command.