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
sudo bash -c 'echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf' | |
sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf' | |
sudo sysctl -p |
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
{ | |
"policy": { | |
"system": { | |
"statsInboundUplink": true, | |
"statsInboundDownlink": true | |
} | |
}, | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", |
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
/* Kernel includes. */ | |
#include "FreeRTOS.h" | |
#include "task.h" | |
#include "queue.h" | |
#include "timers.h" | |
#include "semphr.h" | |
/* Freescale includes. */ | |
#include "fsl_device_registers.h" | |
#include "board.h" |
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
#include "board.h" | |
#include "fsl_lpuart.h" | |
#include "pin_mux.h" | |
#include "clock_config.h" | |
uint8_t txData[] = "Hello,World!"; | |
uint8_t rxData[512]; | |
typedef struct |
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 requests | |
import threadpool | |
from datetime import datetime | |
g_cnt = 0 | |
def requests_test(ip): | |
global g_cnt | |
g_cnt = g_cnt + 1 | |
g_cnt_str = '[' + str(g_cnt) + ']' |
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
FROM alpine | |
MAINTAINER TaterLi <[email protected]> | |
RUN set -ex && \ | |
apk add --no-cache udns && \ | |
apk add --no-cache --virtual .build-deps \ | |
git autoconf automake make build-base \ | |
curl libev-dev c-ares-dev libtool linux-headers \ | |
libsodium-dev mbedtls-dev pcre-dev tar udns-dev && \ | |
cd /tmp/ && \ |
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
FROM debian:buster | |
RUN apt update && \ | |
apt upgrade -y && \ | |
apt install --no-install-recommends --no-install-suggests -y wget unzip python3 python3-pip && \ | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ | |
dpkg -i google-chrome-stable_current_amd64.deb ; \ | |
apt-get -f -y --no-install-recommends --no-install-suggests install && \ | |
dpkg -i google-chrome-stable_current_amd64.deb && \ | |
rm google-chrome-stable_current_amd64.deb && \ |
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 time | |
from faker import Faker | |
from selenium import webdriver | |
f = Faker() | |
with open("accounts.txt") as fh: | |
line = fh.readline() | |
while line: | |
email = line.strip() | |
line = fh.readline() |
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
# 导入 etree类 | |
from lxml import etree | |
# 作为示例的 html文本 | |
f = open("test.html",encoding='utf-8') | |
html = f.read() | |
dom = etree.HTML(html) | |
for b in range(len(dom.xpath('/html/body/table/tbody/tr/td[2]/text()'))): |
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 requests | |
import threadpool | |
from IPy import IP | |
def IP_Test(ip): | |
try: | |
r = requests.get('http://' + ip + '/', timeout=3) | |
if 'Direct IP access not allowed' in r.text: | |
print('可用:' + ip, flush=True) | |
else: |