This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import ast | |
import asyncio | |
import difflib | |
import logging | |
import os | |
import pathlib | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import configparser | |
import os | |
import re | |
import shlex | |
import sys | |
from typing import Any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
import persist | |
var PERSIST_VERSION = 2 | |
var PIXEL_COUNT = 28 | |
var BUTTON_COUNT = size(tasmota.get_power()) - 1 | |
var LEDS = { | |
2: { | |
0: [11, 20], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Albert Heijn Korting Updated (with Promotion Parsing) | |
// @namespace https://wol.ph/ | |
// @version 1.0.6 | |
// @description Add price per unit and discount percentage to products and promotion cards (updated for new page structures) | |
// @author wolph | |
// @match https://www.ah.nl/* | |
// @icon https://icons.duckduckgo.com/ip2/ah.nl.ico | |
// @grant none | |
// @license BSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Use an influxdb query like this to fetch the data and store it as `meterstanden.csv`: | |
``` | |
SELECT max("value") FROM "m3" WHERE ("entity_id"::tag = 'gas_consumption') AND $timeFilter GROUP BY time(1d) fill(linear) | |
``` | |
''' | |
import pandas as pd | |
import json | |
import requests | |
import progressbar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python -u | |
import os | |
import re | |
import sys | |
import itertools | |
import contextlib | |
import subprocess | |
sys.stdout.reconfigure(line_buffering=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
light: | |
- platform: neopixelbus | |
type: GRB | |
variant: WS2812 | |
pin: GPIO1 | |
num_leds: 1 | |
name: "NeoPixel 1" | |
internal: true | |
- platform: neopixelbus | |
type: GRB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name nzbking size and extension filtering | |
// @namespace http://wol.ph/ | |
// @version 0.1 | |
// @description Automatically hides downloads that are too small or only contain extensions such as exe, jpg, nfo, etc... | |
// @author wolph | |
// @match https://www.nzbking.com/* | |
// @icon https://icons.duckduckgo.com/ip2/nzbking.com.ico | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import enum | |
import math | |
import random | |
import timeit | |
import typing | |
import dataclasses | |
import collections | |
NewerOlder