Skip to content

Instantly share code, notes, and snippets.

View felschr's full-sized avatar
🌈

Felix Schröter felschr

🌈
View GitHub Profile
@felschr
felschr / keybase.md
Last active September 19, 2017 20:44

Keybase proof

I hereby claim:

  • I am FelschR on github.
  • I am felschr (https://keybase.io/felschr) on keybase.
  • I have a public key whose fingerprint is F954 52E9 4F85 BBBD 69CA 529C F9C2 7684 FF42 B47B

To claim this, I am signing this object:

@felschr
felschr / notify_and_save_camera_snapshot_with_archive_on_motion.yaml
Last active December 31, 2023 16:36
Home Assistant Blueprint - Notify & save a camera snapshot with archive when motion is detected
blueprint:
name: Notify & save a camera snapshot when motion is detected
description: Notify & save a camera snapshot with archive when motion is detected
domain: automation
source_url: https://gist.github.com/felschr/6194c361e4cab383c685490beec09e1e
author: felschr
input:
motion_sensor:
name: Motion sensor
description: The sensor wich triggers the snapshot creation
@felschr
felschr / presence_light.yaml
Last active December 31, 2023 13:44
Home Assistant Blueprint - Presence-activated Light
blueprint:
name: Presence-activated Light
description: Turn on a light when presence is detected.
domain: automation
source_url: https://gist.github.com/felschr/d9864e8f8a892ac9157942810abc8c21
author: felschr
input:
presence_entity:
name: Presence Sensor
selector:
@felschr
felschr / tailscale-lock-sign-mullvad-exit-nodes.nu
Last active May 28, 2025 22:01
Tailnet Lock: Sign Mullvad exit nodes
#! /usr/bin/env nu
let $status = tailscale lock status --json | from json
let $nodes = $status | get FilteredPeers
let $nodes_mullvad = $nodes | where Name =~ ".mullvad.ts.net"
let count_total = $nodes | length
let count_mullvad = $nodes_mullvad | length
@felschr
felschr / zha-ikea-two-button-remote-rodret-for-lights-e2201.yaml
Last active January 29, 2024 22:24
ZHA - IKEA two button remote (Rodret) for lights (E2201)
blueprint:
name: ZHA - IKEA two button remote for lights
description: Control lights with an IKEA two button remote (Rodret) via ZHA.
domain: automation
source_url: https://gist.github.com/felschr/3e9f4dcae265a2b600d52b187d6a35cf
author: felschr
input:
remote:
name: Remote
description: IKEA remote to use
@felschr
felschr / firefox-parse-site-security.nu
Last active October 24, 2025 12:41
Parsing & editing `SiteSecurityServiceState.bin` via nushell script.
#! /usr/bin/env nu
# See format description for `SiteSecurityServiceState.bin`:
# https://gitlab.torproject.org/tpo/applications/tor-browser/-/blob/tor-browser-128.7.0esr-14.5-1/security/manager/ssl/data_storage/src/lib.rs#L349-353
# Format is [checksum][score][last accessed][key][value]
let browsers = [
{ name: "Firefox" path: "~/.mozilla/firefox" }
{ name: "Tor Browser" path: "~/.tor project/firefox" }
@felschr
felschr / firefox-sync-exceptions.nu
Created May 18, 2025 18:37
Parsing & editing Cookies & Site Data Exceptions (`permissions.sqlite`) via nushell script.
#! /usr/bin/env nu
print "This script synchronizes site data & cookie exceptions for Firefox-based browsers with a TOML config file."
let browsers = [
{ name: "Firefox" path: "~/.mozilla/firefox" }
{ name: "Tor Browser" path: "~/.tor project/firefox" }
{ name: "Mullvad Browser" path: "~/.mullvad/mullvadbrowser" }
]
let browser = $browsers | input list --display name --fuzzy "Select your browser"