Skip to content

Instantly share code, notes, and snippets.

@xmdhs
xmdhs / version.json
Last active December 21, 2021 17:44
minecraft log4j version
{
"1.18.1": ":2.14.1",
"1.18.1-rc3": ":2.14.1",
"1.18.1-rc2": ":2.14.1",
"1.18.1-rc1": ":2.14.1",
"1.18.1-pre1": ":2.14.1",
"1.18": ":2.14.1",
"1.18-rc4": ":2.14.1",
"1.18-rc3": ":2.14.1",
"1.18-rc2": ":2.14.1",
@xmdhs
xmdhs / 漫读券.js
Created February 19, 2022 16:06
批量使用漫读券
(async () => {
let u = new URL(location.href);
let mc = u.pathname.match(/detail\/mc(\d+)/);
if (mc.length != 2) {
return
}
let mcid = mc[1];
let r = await fetch("https://manga.bilibili.com/twirp/comic.v1.Comic/ComicDetail?device=pc&platform=web", {
"headers": {
@xmdhs
xmdhs / client.go
Last active June 29, 2022 08:29
minecraft lan list
package main
import (
"fmt"
"math/rand"
"net"
"os"
"strconv"
"sync"
"time"
@xmdhs
xmdhs / 1-tproxy.sh
Last active January 11, 2024 10:00
tproxy netmap dmz 示例命令
#!/bin/bash
lan="enx8e6a234ea26a"
ipset restore -f /usr/local/etc/ipset/cnipset.conf
ip rule add fwmark 1 table 100
ip route add local 0.0.0.0/0 dev lo table 100
iptables -t mangle -A PREROUTING -m state --state NEW -i $lan -j CONNMARK --or-mark 64