Skip to content

Instantly share code, notes, and snippets.

View FeatherKing's full-sized avatar

Chris Featherstone FeatherKing

  • Salt Lake City, UT
View GitHub Profile
@FeatherKing
FeatherKing / get_cielo_tokens.py
Last active June 4, 2026 05:49
fetch fresh cielo home tokens (needs playwright)
#!/usr/bin/env python3
"""Fetch fresh Cielo Home tokens for the cielo_home custom integration.
Cielo's web login (home.cielowigle.com) is protected by a reCAPTCHA, so the
tokens the integration needs cannot be obtained with a plain HTTP request.
This script opens a real browser, lets you log in (solving the captcha if it
appears), then captures and prints the five values you paste into the
integration's config flow:
access_token, refresh_token, session_id, user_id, x_api_key
@FeatherKing
FeatherKing / usb-ether.sh
Created December 4, 2024 04:53 — forked from dafta/usb-ether.sh
Steam Deck USB Ethernet
#!/bin/sh
if [ "$UID" -ne 0 ]; then
echo "This script needs to be executed as root"
exit 1
fi
vendor_id="0x3000" # Valve
product_id="0x28DE"
serial_number="$(dmidecode -s system-serial-number)" # The Steam Deck's serial number
firewall {
all-ping enable
broadcast-ping disable
group {
}
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {