Skip to content

Instantly share code, notes, and snippets.

@badboybeyer
badboybeyer / inovelli_led.yaml
Last active December 3, 2023 04:10
Script for setting the notification LED settings of Inovelli red and blue switches
---
# Changes:
# Aug 08, 2023
# 1. Added support for the new 2-in-one red series switches (VZW31)
# 2. Added support for the blue series 2-in-on switches (VZM31) [Zigbee2MQTT integration]
# 3. Stop using inovelli math, and use the bitmasked parameters offered by zwave-js
# May 26, 2022
# 1. First release removing support for the deprecated OpenZWave and ZWave integrations.
# 2. Added support for the White LED color.
# * @kschlichter and @mwav3 thank you for your help.
@badboybeyer
badboybeyer / 3080FE_check_nvidia_stock_2020-10-08.py
Last active November 24, 2021 02:50
A script for checking availability of the RTX 3080FE on nvidia.com on 2020-10-08; uses selenium and firefox; sends a text message via twilio if stock found; edited to ignore the best buy stock option
#!/usr/bin/env python
"""
MIT License
Copyright (c) 2020 Erich Beyer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@badboybeyer
badboybeyer / Pipfile
Created November 25, 2019 22:17
simple code emulating tvdb_api.py logic to reproduce 401 failure
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
requests = "*"
@badboybeyer
badboybeyer / tvdbapi.patch
Created November 25, 2019 20:25
tvdb api patch for sickgear
diff --git a/lib/tvdb_api/tvdb_api.py b/lib/tvdb_api/tvdb_api.py
index 1cd1a839..2e68e324 100644
--- a/lib/tvdb_api/tvdb_api.py
+++ b/lib/tvdb_api/tvdb_api.py
@@ -18,6 +18,7 @@ import tempfile
import warnings
import logging
import requests
+from requests.auth import AuthBase
import requests.exceptions
@badboybeyer
badboybeyer / sickgear.log
Created November 20, 2019 17:32
sickgear error log - cannot add show
2019-11-20 09:04:40 DEBUG TORNADO :: Searching for shows using search term: mandalorian from tv datasource TheTVDB
2019-11-20 09:05:06 DEBUG TORNADO :: Searching for show using search term: mandalorian from tv datasource Trakt
2019-11-20 09:05:13 DEBUG TORNADO :: Setting permissions for /path/to/shows/The Mandalorian to 775 as parent directory has 775
2019-11-20 09:05:13 DB TORNADO :: sickbeard.db: SELECT *, tv_shows.status as show_status FROM tv_episodes, tv_shows WHERE season != 0 AND airdate >= ? AND airdate <= ? AND tv_shows.indexer_id = tv_episodes.showid AND tv_episodes.status NOT IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) with args [737382, 737391, 2, 3276802, 202, 402, 102, 802, 12802, 25602, 1602, 3202, 102402, 6402, 4, 3276804, 204, 404, 104, 804, 12804, 25604, 1604, 3204, 102404, 6404, 6, 3276806, 206, 406, 106, 806, 12806, 25606, 1606, 3206, 102406, 6406, 7, 5]
2019-11-20 09:05:13 DB TORNADO :: sickbeard.db: SELECT *, tv_shows.status as sh
@badboybeyer
badboybeyer / .gitignore
Last active November 5, 2022 11:36 — forked from ELLIOTTCABLE/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log