Skip to content

Instantly share code, notes, and snippets.

@Sirse
Sirse / uptime_kuma.sh
Created September 6, 2024 06:45
Simple script for OpenWRT router to ping Uptime Kuma instance
#!/bin/sh
API_KEY="your_api_key_here"
HOST_URL="https://localhost"
PING_HOST="1.1.1.1"
PING_RESULT=$(ping -c 1 "$PING_HOST" | tail -1 | awk '{print $4}' | cut -d '/' -f 2)
if [ "${HOST_URL: -1}" != "/" ]; then
HOST_URL="${HOST_URL}/"
@Sirse
Sirse / sr_antifiter_community.conf
Last active August 28, 2025 13:06
ShadowRocket
[General]
bypass-system = true
ipv6 = false
prefer-ipv6 = false
private-ip-answer = true
dns-direct-system = false
dns-fallback-system = false
dns-direct-fallback-proxy = true
dns-server = https://dns.adguard-dns.com/dns-query, tls://dns.adguard-dns.com, quic://dns.adguard-dns.com
fallback-dns-server = https://8.8.8.8/dns-query,https://1.1.1.1/dns-query
@Sirse
Sirse / ts0601_haozee.py
Last active December 19, 2021 18:35
Temporary quirk draft for HAOZEE HY08WE
"""Map from manufacturer to standard clusters for thermostatic valves."""
import logging
from typing import Optional, Union
from zigpy.profiles import zha
import zigpy.types as t
from zigpy.zcl.clusters.general import Basic, Groups, Ota, Scenes, Time
from zhaquirks.const import (
DEVICE_TYPE,
package jaredbgreat.minefantasy.herbs;
import jaredbgreat.minefantasy.Info;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.potion.PotionHelper;
public class ItemHerb extends Item {
public ItemHerb(EHerbs herb) {