# 已经有了SS
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy
# 只对github进行代理
systemctl status firewalld # 查看firewall服务状态
systemctl start firewalld # 启动
service firewalld restart # 重启
systemctl stop firewalld # 关闭
systemctl disable firewalld # 开机禁用
systemctl enable firewalld # 开机启用
firewall-cmd --zone=public --permanent ... # 指定区域、永久的命令
firewall-cmd --list-all # 查看防火墙规则
/*
* barrage 弹幕
*
* 2019-06
* netnr
*/
(function (window) {
var bar = function (obj) {
# 教程链接
https://docs.microsoft.com/zh-cn/windows/wsl/install-manual
# 使用开发人员模式
设置》更新和安全》开发中选项》开发人员模式
# 添加 Windows 应用程序
# 适用于 Linux 的 Windows 子系统,或 PowerShell 执行命令安装
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
yum install epel-release -y && yum install htop -y # 安装 htop
# help
https://www.tecmint.com/htop-linux-process-monitoring/
npm install gtop -g # 安装 gtop
# help
https://github.com/aksakalli/gtop
yum install httpd-tools # 安装
ab -V # 版本
# Get 请求,10 并发 总 100 次
ab -c 10 -n 100 https://zme.ink/
# Post 请求(发送当前目录下的 post.txt 文件:uid=1&pwd=1)
ab -c 10 -n 100 -p post.txt https://zme.ink/
# Post 请求(发送当前目录下的 post.txt)
ab -c 10 -n 100 -T 'application/json' -p post.txt https://zme.ink/