Skip to content

Instantly share code, notes, and snippets.

View zaxbux's full-sized avatar
👨‍💻

Zach Schneider zaxbux

👨‍💻
View GitHub Profile
@zaxbux
zaxbux / README.md
Last active February 17, 2025 22:08
433 MHz Desk Lamp Remote ESPHome ESP32-C6-WROOM-1

This is for some generic LED desk lamp.

Protocol: Princeton 24-bit 433.92 AM

Button Binary Key
Power 01001110 10100101 00000001 00 4E A5 01
Temperature 01001110 10100101 00000010 00 4E A5 02
Brightness 01001110 10100101 00000011 00 4E A5 03
Timer 01001110 10100101 00000100 00 4E A5 04
@zaxbux
zaxbux / README.md
Created February 9, 2025 17:44
Google Drive/Docs URLs

Locate File

https://drive.google.com?authuser=0#my-drive?action=locate&id=1KAiEivkCLHZE7GNFeeaMjhuKGNpGsKtH
@zaxbux
zaxbux / README.md
Last active October 15, 2024 20:29
1Password chrome extension settings highlight URLs

categoryId

  • sectionGeneral
  • sectionSecurity
  • sectionAutofill
  • sectionAccountsandvaults
  • sectionNotifications
  • sectionWatchtower
  • sectionAppearanceAndShortcuts
  • sectionIntegrations
  • sectionInsiders

Product Keys

Edition Type Key
Windows 10 Pro Default RHGJR-N7FVY-Q3B8F-KBQ6V-46YP4
Windows 10 Pro N Default RHGJR-N7FVY-Q3B8F-KBQ6V-46YP4
Windows 10 Pro RTM VK7JG-NPHTM-C97JM-9MPGT-3V66T
Windows 10 Pro N RTM 2B87N-8KFHP-DKV6R-Y2C8J-PKCKT
Windows 10 Enterprise RTM XGVPP-NMH47-7TTHJ-W3FW7-8HV2C
Windows 10 Enterprise N RTM WGGHN-J84D6-QYCPR-T7PJ7-X766F
#!/bin/bash
indent() { sed 's/^/ /'; }
urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
# encode special characters per RFC 3986
urlencode() {
local LC_ALL=C # support unicode = loop bytes, not characters
local c i n=${#1}
for (( i=0; i<n; i++ )); do
c="${1:i:1}"
@zaxbux
zaxbux / getMacScreensaver.sh
Created May 12, 2024 07:39
Get macOS Screensaver and Settings
#!/bin/bash
loggedInUser=$(stat -f "%Su" /dev/console)
osVersion=$(/usr/bin/sw_vers -productVersion)
osVerMajor=$(echo "$osVersion" | /usr/bin/awk -F"." '{print $1}')
#osVerMinor=$(echo "$osVersion" | /usr/bin/awk -F"." '{print $2}')
#osVerPatch=$(echo "$osVersion" | /usr/bin/awk -F"." '{print $3}')
indent() { sed 's/^/ /'; }
@zaxbux
zaxbux / Extensions.md
Last active March 17, 2025 18:49
Mac sysadmin
@zaxbux
zaxbux / clean_downloads.sh
Created March 28, 2024 00:11
Delete user downloads that are older than 28 days (macOS)
#!/bin/bash
sudo -u $(stat -f "%Su" /dev/console) /bin/bash <<'END'
# Move files to user's trash
function trash() {
if [[ $# ]]; then
a=()
for f in "$@"; do a+=("$(realpath "$f")"); done
f=$(printf "\",POSIX file \"%s" "${a[@]}")\"
@zaxbux
zaxbux / README.md
Created October 5, 2023 07:45
ESP32-C6-DevKitC-1

Addressable RGB LED

light:
  - platform: esp32_rmt_led_strip
    id: led_gpio8
    name: "${friendly_name} Light"
    pin: GPIO8
    num_leds: 1
 rmt_channel: 0
@zaxbux
zaxbux / tubezb-cc2652p2-ethusb-2023.yaml
Created September 12, 2023 02:29
TubeZB CC2652P2 Ethernet/USB Coordinator ESPHome BLE Proxy
substitutions:
name: tubezb-cc2652p2-ethusb-2023
friendly_name: TubesZB and Bluetooth Proxy
esphome:
name: ${name}
friendly_name: ${friendly_name}
esp32:
board: esp32doit-devkit-v1