This file contains 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
/*************************************************************************************** | |
* 本程序由江协科技创建并免费开源共享 | |
* 你可以任意查看、使用和修改,并应用到自己的项目之中 | |
* 程序版权归江协科技所有,任何人或组织不得将其据为己有 | |
* | |
* 程序名称: 0.96寸OLED显示屏驱动程序(4针脚I2C接口) | |
* 程序创建时间: 2023.10.24 | |
* 当前程序版本: V1.2 | |
* 当前版本发布时间: 2024.4.24 |
This file contains 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
#!/usr/bin/python3 | |
import subprocess | |
import os | |
import sys | |
fwd_map = {8080: {8081, 8082, 8083, 8084, 8085, 8086, 8087, 8088, 8089, 9090}, 443: {1443, 2443, 3443, 4443, 5443, 6443, 7443, 8443, 9443, 10443}} | |
ipt_template = 'iptables -t nat -A PREROUTING -p tcp --dport {} -j REDIRECT --to-port {}' | |
ipt_disable_template = 'iptables -t nat -D PREROUTING -p tcp --dport {} -j REDIRECT --to-port {}' |
This file contains 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
#!/usr/bin/python3 | |
import subprocess | |
import os | |
import sys | |
https_port_to_disable = [443, 1443, 2443, 3443, 4443, 5443, 6443, 7443, 8443, 9443, 10443] | |
ipt_template = 'iptables -t filter -A INPUT -p tcp --dport {} -j DROP' | |
ipt_disable_template = 'iptables -t filter -D INPUT -p tcp --dport {} -j DROP' |
This file contains 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
{ | |
"log": { | |
"level": "warn", | |
"timestamp": true | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "dns_proxy", | |
"address": "tcp://1.1.1.1", |
This file contains 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
anonymous_enable=NO | |
local_enable=YES | |
dirmessage_enable=YES | |
xferlog_enable=YES | |
connect_from_port_20=YES | |
listen=NO | |
listen_ipv6=YES | |
pam_service_name=vsftpd |
This file contains 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 os | |
import pandas as pd | |
try: | |
sheet = pd.read_excel("test.xlsx", header=None) | |
except Exception as e: | |
print('read_excel failed') | |
exit(-1) | |
print(sheet.iloc[0,0]) |
This file contains 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
[global] | |
server role = standalone server | |
workgroup = WORKGROUP | |
max log size = 1000 | |
logging = file | |
security = user | |
map to guest = bad user |
This file contains 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
# These settings were set by the catalyst build script that automatically | |
# built this stage. | |
# Please consult /usr/share/portage/config/make.conf.example for a more | |
# detailed example. | |
COMMON_FLAGS="-march=x86-64 -mtune=generic -O2 -pipe" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS}" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" |
This file contains 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
port: 7890 # port of HTTP | |
socks-port: 7891 # port of SOCKS5 | |
allow-lan: false | |
mode: rule | |
proxies: | |
- name: "t1" | |
type: trojan | |
server: xx.com |
This file contains 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/bash | |
INTERFACE_NAME='ens18' | |
REDIR_PORT='1088' | |
# 开启代理 | |
start() | |
{ | |
echo "start tproxy begin" |
NewerOlder