sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo apt-get install build-essential haveged -y
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install curl -y
sudo apt-get install shadowsocks-libev -y
sudo apt-get install cron -y
sudo apt-get install screen -y
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
# Block Torrent algo string using Boyer-Moore (bm) | |
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "peer_id=" -j DROP | |
iptables -A FORWARD -m string --algo bm --string ".torrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "torrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "announce" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "info_hash" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "/default.ida?" -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
#!/bin/sh | |
############################################## | |
# This script disconnects connected clients, # | |
# where the signal is below the configured # | |
# signal. # | |
############################################## | |
# v1.0 # | |
# maintained by Rene Losert <dev@losert.xyz> # | |
############################################## |
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/sh | |
UPGRADE=0 | |
TRAVIS_BUILD_DIR="Portable" | |
PCK_NAME="haproxy-static" | |
USE_STATIC_PCRE=1 | |
TARGET=linux2628 | |
HAPROXY_MAJOR_VERSION="1.7" | |
HAPROXY_MINOR_VERSION="1" | |
PCRE_VERSION="8.39" | |
OPENSSL_VERSION="1.0.2j" |
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/sh | |
#Cross Build Static aarch64 Tor Binary on Alpine x86_x64 | |
install_dir="`pwd`/aarch64" | |
include_dir="${install_dir}/include" | |
lib_dir="${install_dir}/lib" | |
custom_flags_set() { | |
CPPFLAGS="--static -static -I${include_dir}" |
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
@ECHO OFF & CLS & ECHO. | |
NET FILE 1>NUL 2>NUL & IF ERRORLEVEL 1 (ECHO You must right-click and select & ECHO "RUN AS ADMINISTRATOR" to run this batch. Exiting... & ECHO. & Timeout /t 10 & EXIT /B) | |
REM ... proceed here with admin rights ... | |
REM http://stackoverflow.com/questions/7044985/how-can-i-auto-elevate-my-batch-file-so-that-it-requests-from-uac-administrator | |
SETLOCAL | |
:: | |
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad3.exe\" /z" /f | |
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe\0" /v "FilterFullPath" /t REG_SZ /d "\"%~dp0Notepad3.exe\" /f | |
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe\1" /v "FilterFullPath" /t REG_SZ /d "\"%~dp0Notepad3.exe\" /f |
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
openssl speed -multi 4 aes-128-cbc | |
#Netgear R6700V3 Broadcom BCM4708C0 (1 GHz, 2 cores) | |
OpenSSL 1.1.1l 24 Aug 2021 | |
built on: Tue Sep 21 03:53:56 2021 UTC | |
options:bn(64,32) rc4(char) des(long) aes(partial) idea(int) blowfish(ptr) | |
compiler: distcc arm-linux-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -march=armv7-a -mtune=cortex-a9 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG -I/mmc/include -DOPENSSL_PREFER_CHACHA_OVER_GCM | |
aes-128 cbc 60405.84k 71259.72k 72525.55k 73877.76k 74127.67k 74700.12k | |
#Netgear R7800 Qualcomm IPQ8065 (1.7 GHz, 2 cores) |
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
/** | |
* 使用方法: | |
* 1. 用 Chrome 打开歌单的 web 页面(可以通过分享拿到链接,链接类似这样:http://music.163.com/playlist?id=xxx&userid=yyy) | |
* 2. 然后右键“检查”(如果有左上角有 device 选项,需要选择 Laptop 开头的,可以在 Edit/编辑 里添加) | |
* 3. 在 console 里输入下面脚本,即可输出 “歌曲名 - 歌手名” 格式的内容: | |
Springsteen - Eric Church | |
Chattahoochee - Alan Jackson | |
Baby Now That I Found You - Alison Krauss | |
Check Yes or No - George Strait |
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: error # 日志级别。可选 `debug` `info` `warn` `error`。默认 `info`。 | |
file: "/var/log/mosdns.log" # 记录日志到文件。 | |
#level: debug | |
#file: "" | |
plugin: | |
## 启动 sequence 服务器 DoT | |
# - tag: dot_server | |
# type: server |
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: error # 日志级别。可选 `debug` `info` `warn` `error`。默认 `info`。 | |
# file: "/var/log/mosdns.log" # 记录日志到文件。 | |
level: debug | |
file: "" | |
plugin: | |
## 启动 sequence 服务器 | |
- tag: sequence_server | |
type: server |
NewerOlder