Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
PROXY_BYPASS_USER="proxy"
PROXY_BYPASS_CGROUP="0x16200000"
PROXY_FWMARK="0x162"
PROXY_ROUTE_TABLE="0x162"
PROXY_DNS_SERVER="127.0.0.1:1053"
PROXY_FORCE_NETADDR="198.18.0.0/16"
PROXY_TUN_DEVICE_NAME="clash0"
#!/bin/bash
PROXY_BYPASS_USER="proxy"
PROXY_BYPASS_CGROUP="0x16200000"
PROXY_FWMARK="0x162"
PROXY_ROUTE_TABLE="0x162"
PROXY_DNS_SERVER="127.0.0.1:1053"
PROXY_FORCE_NETADDR="198.18.0.0/16"
PROXY_TUN_DEVICE_NAME="clash0"
@Kr328
Kr328 / pppd-netkeeper-plugin.c
Created October 3, 2020 05:09
适用于 pppd 的 NetKeeper 插件
#pragma ide diagnostic ignored "hicpp-signed-bitwise"
/*
* pppd 闪讯拨号插件
*
* 认证算法来源
* https://github.com/miao1007/Openwrt-NetKeeper
*
* 构建
* gcc plugin.c -O3 -fPIC -shared -o netkeeper.so
# Attribute: userinfo-url={{print .subscribe_url}}
# Attribute: filename={{hostOf .subscribe_url}}.yaml
ipv6: true
mixed-port: 7890
mode: rule
allow-lan: true
log-level: info
external-controller: 127.0.0.1:6170
127.0.0.0/8
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
@Kr328
Kr328 / request-github-apps-oauth.go
Created March 4, 2022 05:00
Simple cli tool for requesting github apps oauth token
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"net"
"net/http"
119.29.29.29/32
223.5.5.5/32
114.114.114.114/32
1.1.1.1/32
1.0.0.1/32
8.8.8.8/32
8.8.4.4/32
203.107.1.0/24
101.124.19.122/32
# Clash will run in rule mode
mode: rule
# Define proxies to handle traffic
proxies:
# A socks5 proxy at 10.0.2.2:7890
- name: PROXY
type: socks5
server: 10.0.2.2
port: 7890
@Kr328
Kr328 / inject-vconsole.js
Created June 21, 2022 12:38
Userscript for injecting vconsole to any website
// ==UserScript==
// @name vConsole
// @namespace https://userscipts.kr328.app/
// @version 1.0
// @description Inject vConsole to any website
// @author Kr328
// @match *://*/*
// @grant none
// @require https://unpkg.com/vconsole/dist/vconsole.min.js
// ==/UserScript==