Last active
October 28, 2022 07:45
-
-
Save hldh214/bf00b11b906631f37bf1b74e1113a555 to your computer and use it in GitHub Desktop.
YunDunKiller
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
# Respect default shortcuts. | |
$include /etc/inputrc | |
## arrow up | |
"\e[A":history-search-backward | |
## arrow down | |
"\e[B":history-search-forward | |
# suppress git bash flicker | |
set bell-style none |
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
http://domain { | |
root * /var/www/html | |
file_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
{ | |
"run_type": "server", | |
"local_addr": "0.0.0.0", | |
"local_port": 443, | |
"remote_addr": "127.0.0.1", | |
"remote_port": 80, | |
"password": [ | |
"domain" | |
], | |
"log_level": 1, | |
"ssl": { | |
"cert": "/ssl/ecc-cert/domain/cert.pem", | |
"key": "/ssl/ecc-cert/domain/key.pem", | |
"key_password": "", | |
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384", | |
"cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384", | |
"prefer_server_cipher": true, | |
"alpn": [ | |
"http/1.1" | |
], | |
"alpn_port_override": { | |
"h2": 81 | |
}, | |
"reuse_session": true, | |
"session_ticket": false, | |
"session_timeout": 600, | |
"plain_http_response": "", | |
"curves": "", | |
"dhparam": "" | |
}, | |
"tcp": { | |
"prefer_ipv4": false, | |
"no_delay": true, | |
"keep_alive": true, | |
"reuse_port": false, | |
"fast_open": false, | |
"fast_open_qlen": 20 | |
}, | |
"mysql": { | |
"enabled": false, | |
"server_addr": "127.0.0.1", | |
"server_port": 3306, | |
"database": "trojan", | |
"username": "trojan", | |
"password": "", | |
"key": "", | |
"cert": "", | |
"ca": "" | |
} | |
} |
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/env bash | |
set -e | |
if [ -z "$1" ] | |
then | |
echo "Usage: $0 TARGET_BRANCH" | |
exit 1 | |
fi | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
TARGET_BRANCH=$1 | |
echo "switching to target branch: $TARGET_BRANCH" | |
git checkout $TARGET_BRANCH | |
git pull | |
git merge $CURRENT_BRANCH | |
git push | |
git checkout $CURRENT_BRANCH | |
echo "Done~" |
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
# Aliyun YunDun | |
rm -rf /usr/sbin/aliyun* | |
rm -rf /usr/local/share/aliyun-assist | |
pkill aliyun-service | |
rm -rf /usr/local/aegis | |
pkill AliYunDun | |
pkill AliYunDunUpdate | |
# Qcloud YunJing | |
/usr/local/qcloud/stargate/admin/uninstall.sh | |
/usr/local/qcloud/YunJing/uninst.sh | |
/usr/local/qcloud/monitor/barad/admin/uninstall.sh | |
crontab -r | |
rm -rf /usr/local/qcloud | |
# apt upgrade && install ...... | |
apt update && apt upgrade -y | |
apt install -y git zsh unzip curl wget htop tmux nethogs | |
# TCP BBR | |
sudo bash -c 'echo "net.core.default_qdisc=fq_codel" >> /etc/sysctl.conf' | |
sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf' | |
sudo sysctl -p | |
sudo sysctl net.ipv4.tcp_available_congestion_control | |
sysctl net.ipv4.tcp_congestion_control | |
reboot | |
# V2Ray | |
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) | |
systemctl status v2ray | |
systemctl start v2ray | |
systemctl restart v2ray | |
# ohmyzsh | |
REMOTE=https://gitee.com/mirrors/oh-my-zsh.git sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)" | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# vimrc | |
git clone --depth=1 https://github.com.cnpmjs.org/amix/vimrc.git ~/.vim_runtime | |
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_awesome_vimrc.sh | |
# Caddy | |
# https://caddyserver.com/docs/install | |
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https | |
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg | |
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list | |
sudo apt update | |
sudo apt install caddy | |
mkdir -p /var/www/html | |
cp /usr/share/caddy/index.html /var/www/html | |
# acme.sh | |
export domain=txhk51.pwpwpwpwpwpwpwpwpwpw.pw | |
curl https://get.acme.sh | sh -s email=my@$domain | |
acme.sh --issue --keylength ec-256 -d $domain --webroot /var/www/html | |
mkdir -p /ssl/ecc-cert/$domain/ | |
acme.sh --install-cert -d $domain --ecc \ | |
--key-file /ssl/ecc-cert/$domain/key.pem \ | |
--fullchain-file /ssl/ecc-cert/$domain/cert.pem \ | |
--reloadcmd "systemctl restart trojan" | |
chmod -R 0755 /ssl | |
# Caddyfile | |
echo $'alihk.gilfoyle.xyz {\n reverse_proxy /comments localhost:10000\n}' > /etc/caddy/Caddyfile | |
systemctl restart caddy | |
# ss-libev | |
snap install shadowsocks-libev | |
export PATH=/snap/bin:$HOME/bin:/usr/local/bin:$PATH | |
shadowsocks-libev.ss-server -k hldh214 -u -p 8964 | |
# trojan | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:greaterfire/trojan | |
sudo apt-get install trojan | |
# kernel | |
https://github.com/pimlie/ubuntu-mainline-kernel.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
谢谢我hldh214哥。爱您么么哒。