Skip to content

Instantly share code, notes, and snippets.

@ehedenst
ehedenst / tradfri_remote.yaml
Last active March 3, 2023 15:06
TRADFRI Remote
# Blueprint metadata
blueprint:
name: TRADFRI Remote - V2023.03.03
description: |
Control lights with a TRADFRI Remote.
source_url: https://gist.github.com/ehedenst/e5585ab79b2983e83eb52e38eb3bf1ff
domain: automation
#Define the inputs for the blueprint

openpgp4fpr:33276b67613194bd30d4e1e2f9626486ed8fde67

@ehedenst
ehedenst / agents.bash
Created August 30, 2021 09:28
Connect to Windows Agents from WSL2
# Bash on Windows does not currently apply umask properly.
if [[ "$(umask)" = "0000" ]]; then
umask 0022
fi
# Connect to Windows Agents
if [ -n "$WSL_DISTRO_NAME" ]; then
APPDATA="$(wslvar appdata)"
APPDATA="${APPDATA//\\/\/}"
NPIPERELAY="/c/tools/npiperelay.exe"
@ehedenst
ehedenst / local.RemapCapsLockToF19.plist
Created March 25, 2020 11:26
Remaps Caps Lock to F19 on MacOS, to use copy to ~/Library/LaunchAgents/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.RemapRightOptionToDeleteForward</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>