console.debug(Array.from(document.links).map(l => `[${l.textContent.replace(/\s+/g, ' ').trim()}](${l.href})`).join('\n'));
last # 登录成功的用户信息
last | less # 最近倒序
lastb # 登录失败的用户信息
# /var/log/ 目录下 secure 开头的日志文件
# 查看哪些IP破解你SSH密码以及次数
cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'
class LinkChecker {
static PROXY_SERVERS = [
"https://cors.eu.org/",
"https://seep.eu.org/",
"https://api.codetabs.com/v1/proxy?quest=",
"https://www.netnr.eu.org/api/Open/LinkStatusGet?url=",
"https://netnr.alwaysdata.net/api/Open/LinkStatusGet?url=",
];
static proxyIndex = 0;
# 已经有了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://netnr.eu.org/
# Post 请求(发送当前目录下的 post.txt 文件:uid=1&pwd=1)
ab -c 10 -n 100 -p post.txt https://netnr.eu.org/
# Post 请求(发送当前目录下的 post.txt)
ab -c 10 -n 100 -T 'application/json' -p post.txt https://netnr.eu.org/