Skip to content

Instantly share code, notes, and snippets.

@wyf9
wyf9 / .md
Created August 13, 2026 07:44
sshs - Remote Signing Agent with Metadata Show

TODO

@wyf9
wyf9 / .md
Last active August 7, 2026 07:51
Cloudflared Wrapper

如你所见,这是一个偏自用的 Cloudflared Wrapper

它的作用只有一个:

知周所众,Cloudflared (Cloudflare Tunnel) 给了你 --edge-bind-address 参数用来指定出站网卡

但是!它只能指定精确的 IP,而没法通过前缀 / CIDR 筛选,这对于动态 IP 的用户很不友好

本 Wrapper 通过几个额外参数很好地解决了此问题:

@wyf9
wyf9 / sleepy-v5-listener.py
Created July 26, 2026 07:01
Sleepy Events Listener (for Sleepy v5)
'''
Sleepy Events Listener by wyf9 (for Sleepy v5)
Dependencies:
$ uv add requests sseclient-py deepdiff rich
Or run it directly:
$ uv run --with httpx-sse --with deepdiff --with rich sleepy-v5-listener.py http://sleepy.host # REPLACE HOST
'''
import asyncio
import json
@wyf9
wyf9 / .gitignore
Last active July 9, 2026 04:51
All-in-One Reverse Proxy Program
.venv/
__pycache__/
*.py[cod]
*.egg-info/
.pytest_cache/
.mypy_cache/
.ruff_cache/
.env
config.yaml
@wyf9
wyf9 / README.md
Created June 26, 2026 19:19
Check Email One-Click Bundle

TODO

@wyf9
wyf9 / kitty-custom.ini
Last active July 31, 2026 17:15
~/.config/kitty/kitty.conf
# Kitty config file for self-use and backup purposes.
# Refresh after edit: Ctrl + Shift + F5
# region kitty-custom
# Fonts
# BEGIN_KITTY_FONTS
font_family family="Maple Mono NF CN"
bold_font auto
italic_font auto
bold_italic_font auto
@wyf9
wyf9 / README.md
Last active June 14, 2026 06:41
self-use listen script for AzuraCast (bak)

Listen Script

Available for AzuraCast Instances, other audio streams need to modify the code.

Mainly for self-use (backup) so no support fot those.

Dependencies: ffmpeg & mpv installed in ur PATH, and Python with

httpx
@wyf9
wyf9 / v.sh
Last active May 1, 2026 16:23
Virtual Sink/Mic Script for PipeWire
#!/usr/bin/env bash
set -euo pipefail
LOCKDIR="/tmp/viraudio"
mkdir -p "$LOCKDIR"
command -v pactl >/dev/null || { echo "Missing pactl, please install it first." >&2; exit 1; }
usage() {
cat <<EOF
@wyf9
wyf9 / .gitignore
Last active April 5, 2026 07:15
简单自动点击器 (Linux 可用)
.venv/
__pycache__/
*.egg-info/
@wyf9
wyf9 / .md
Last active April 20, 2026 10:05
NextBridge CQFace 导出指引

cqface export

Step 1

首先打开你的 QQ 数据目录,导航到 .../nt_qq_xxx/nt_data/Emoji/BaseEmojiSyastems/EmojiSystermResource/

Tip

比如在我的机器上: /home/wyf9/.config/QQ/nt_qq_5a3d****98c3/nt_data/Emoji/BaseEmojiSyastems/EmojiSystermResource/
实测也可以从下面两个目录找到,但目录结构不同以及:

  • .../Tencent Files/nt_qq/global/nt_data/Emoji/emoji-resource/sysface_res/apng/ - 不全