Skip to content

Instantly share code, notes, and snippets.

View xmoiduts's full-sized avatar

xmoiduts

View GitHub Profile
@xmoiduts
xmoiduts / gist:23a935d3a0cdd5e03433901dcad90cb8
Last active June 29, 2026 09:35
Proxychain CFW to Clash Verge to Mitigate Verge TUN Failure

Proxychain CFW to Clash Verge to Mitigate Verge TUN Failure

This is a workaround for using the legacy Clash for Windows TUN stack as the traffic entry point, while delegating the actual proxy protocol support and subscription rules to Clash Verge.

Background

My proxy subscription moved to newer protocols such as AnyTLS. Clash for Windows is outdated and cannot handle the new protocol set well, while Clash Verge supports the newer protocols.

However, on my Windows setup, Clash Verge's TUN service is unreliable after a system reboot. Reinstalling the service from the Clash Verge GUI cannot fix it. There is also a related macOS-side issue here:

@xmoiduts
xmoiduts / tg_async_api.py
Created March 17, 2020 16:43
Micropython ESP32 Telegram Bot async API uasyncio
# Async Telegram-bot interface inspired by https://github.com/Lepeshka92/TelegaGraph .
# async examples: https://github.com/micropython/micropython-lib/blob/master/uasyncio/example_http_client.py,
# DO NOT use their ping-pong test case 'cause I failed.
import gc
import ujson
import uasyncio as asyncio
import uerrno
class Telegram_API: