This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.unknowncheats.me/forum/grand-theft-auto-v/275597-gtahax-1-50-external.html | |
| (packed)MP_PSTAT_BOOL0 // Stat with Packed booleans index 0. Takes up to 64 booleans. | |
| (packed)MP_PSTAT_BOOL1 // Stat with Packed booleans index 1. Takes up to 64 booleans. | |
| (packed)MP_PSTAT_BOOL2 // Stat with Packed booleans index 2. Takes up to 64 booleans. | |
| (packed)PSTAT_BOOL0 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 0. Takes up to 64 booleans. | |
| (packed)PSTAT_BOOL1 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 1. Takes up to 64 booleans. | |
| (packed)PSTAT_BOOL2 // Add MP0_ or MP1_ // Character Stat with Packed booleans index 2. Takes up to 64 booleans. | |
| (packed)MP_PSTAT_INT0 // Stat with Packed integers index 0. Takes up to 8 integers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const net = require("net"); | |
| const PORT = 1080; // 监听端口 | |
| const server = net.createServer((socket) => { | |
| let stage = 0; // 0: 握手, 1: 请求详情, 2: 转发中 | |
| socket.on("data", (data) => { | |
| if (stage === 0) { | |
| // SOCKS5 初始握手: [VER, NMETHODS, METHODS...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require("http"); | |
| const net = require("net"); | |
| const url = require("url"); | |
| const proxyPort = 8888; // 你的代理端口 | |
| const server = http.createServer((req, res) => { | |
| // 处理普通 HTTP 请求 | |
| res.writeHead(200, { "Content-Type": "text/plain" }); | |
| res.end("Proxy acts as a tunnel for HTTPS/TCP"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Tailscale GRO optimization for OpenWrt | |
| # This script applies ethtool GRO settings on the WAN interface | |
| # to improve Tailscale UDP throughput as exit node or subnet router. | |
| # Works on linux kernel >= 6.2, Tailscale >= 1.54 | |
| # See https://tailscale.com/s/ethtool-config-udp-gro | |
| # Check if ethtool exists. If not, exit with an error. | |
| # The path /usr/sbin/ethtool is common on OpenWrt. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Reddit 自动中文翻译 | |
| // @namespace shibeta | |
| // @version 2.0 | |
| // @description 自动将 Reddit 页面的 'tl' URL 参数设置为 'zh-hans' 以触发翻译。使用 sessionStorage 防止在不支持翻译的页面上发生无限重定向循环。 | |
| // @author shibeta | |
| // @match http://*.reddit.com/* | |
| // @match https://*.reddit.com/* | |
| // @grant none | |
| // @run-at document-start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Convert | |
| 192.168.0.0-192.168.2.255 | |
| to | |
| "192.168.0.0/23", | |
| "192.168.2.0/24", | |
| ''' | |
| import ipaddress | |
| def ip_range_to_cidrs(start_ip:str, end_ip:str): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| FLAG_FILE="/tmp/ipv6_prefix_change_flag" | |
| FLAG_VALUE=$(cat $FLAG_FILE 2>/dev/null) | |
| if [ "$FLAG_VALUE" = "1" ]; then | |
| logger -t prefix_change "Script is already running. Skipping execution." | |
| exit 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import ipaddress | |
| proxy = { | |
| "http": '', | |
| "https": '' | |
| } | |
| # 设置 Cloudflare API token 和域名 | |
| api_token = 'https://dash.cloudflare.com/profile/api-tokens' # 替换为你的 Cloudflare API token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import sys | |
| # Configuration | |
| BASE_URL = "http://ip:8455" | |
| USERNAME = "admin" # to manage storage, admin permission is required | |
| PASSWORD = "{{PASSWORD}}" | |
| MAX_LOGIN_ATTEMPTS = 5 | |
| MAX_RELOAD_ATTEMPTS = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Runas ADMINISTRATOR | |
| @ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||( | |
| powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT) | |
| :: These settings will be restored everytime Windows reboot | |
| netsh interface ipv6 set global randomizeidentifiers=disabled | |
| netsh interface ipv6 set privacy state=disabled | |
| :: Change 网桥 to your interface name, usually Ethernet | |
| :: Show all interface: netsh interface show interface |