Skip to content

Instantly share code, notes, and snippets.

View MRLQ's full-sized avatar
🌴
On vacation

NIkio MRLQ

🌴
On vacation
View GitHub Profile
@MRLQ
MRLQ / nftables_tproxy_example.nft
Created July 4, 2025 08:41 — forked from NiceRath/nftables_tproxy_example.nft
NFTables TPROXY - proxy input and output
#!/usr/sbin/nft -f
# see also:
# https://wiki.nftables.org/wiki-nftables/index.php/Netfilter_hooks
# https://docs.kernel.org/networking/tproxy.html
# https://powerdns.org/tproxydoc/tproxy.md.html
# http://git.netfilter.org/nftables/commit/?id=2be1d52644cf77bb2634fb504a265da480c5e901
# http://wiki.squid-cache.org/Features/Tproxy4
# https://serverfault.com/questions/1052717/how-to-translate-ip-route-add-local-0-0-0-0-0-dev-lo-table-100-to-systemd-netw
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/net/netfilter/nft_tproxy.c
@MRLQ
MRLQ / mihomo.yaml
Last active June 9, 2024 15:34
mihomo懒人设置,包含url-test与load-balance
######### 锚点 start #######
# proxy 相关
pr: &pr {type: select, proxies: [🎁默认,🇭🇰香港,🇹🇼台湾,🇯🇵日本,🇸🇬新加坡,🇺🇸美国,🎻其它地区,🌐全部节点,🛩️自动选择,DIRECT]}
#这里是订阅更新和延迟测试相关的
p: &p {type: http, interval: 3600, health-check: {enable: true, url: https://www.gstatic.com/generate_204, interval: 300}}
######### 锚点 end #######
b: &b {type: load-balance, include-all-providers: true, url: http://www.gstatic.com/generate_204, interval: 300, strategy: consistent-hashing, lazy: true}
@MRLQ
MRLQ / PuerNya_sing-box_fakeip_client_config.jsonc
Created June 9, 2024 15:20 — forked from CHIZI-0618/PuerNya_sing-box_fakeip_client_config.jsonc
sing-box 带有 Proxy Providers 的客户端配置示例
{
"log": {
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "cloudflare",
@MRLQ
MRLQ / docker-registry-mirrors.md
Created April 17, 2024 12:43 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@MRLQ
MRLQ / config.yaml
Created April 17, 2024 12:40 — forked from liuran001/config.yaml
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.4.1-231211
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
# 虚空终端 (Clash Meta) Docs 地址: https://wiki.metacubex.one
@MRLQ
MRLQ / proxy.sh
Created January 21, 2024 22:53 — forked from weixinfree/proxy.sh
通过命令行为Android手机设置代理
#! /usr/bin/env bash
PORT=8888
function get_proxy() {
local p="$1"
if [[ -n "$p" ]]
then
echo "$p"
else