Skip to content

Instantly share code, notes, and snippets.

View FredrikM97's full-sized avatar

Fredrik Mårtensson FredrikM97

View GitHub Profile
@FredrikM97
FredrikM97 / gitconfig-multi-ssh.txt
Last active June 9, 2026 08:12
Github switch user
# This is a script for .gitconfig and .ssh/config to manage and switch between user accounts. If first argument to ctx is left empty it is considered default otherwise we append to github.com-*
```
[alias]
ctx = "!f() { \
debug() { \
if [ \"$DEBUG\" = \"1\" ]; then \
echo \"[DEBUG] $*\"; \
fi; \
@FredrikM97
FredrikM97 / tradfri_e2001-e2002_light_switch.yaml
Last active December 16, 2024 17:37
Tradfri E2001/E2002 light Switch Blueprint
blueprint:
name: Tradfri E2001/E2002 light Switch
description: >
Control light or group of lights with switch.
Based on https://gist.github.com/FloppyGit/efaa93c1d63676e30c4b61adb4a861ac
domain: automation
input:
source_switch_action:
name: Tradfri E2001/E2002 Switch
description: Switch triggers action.