Nginx访问日志提取高频访问IP


access.log文件的事例数据: access-hsag.log Linux命令: cat access.log | cut -d ' ' -f 1 | sort | uniq -c | sort -nr |awk '{print $0 }' | head -n 10 命令解释: cat acc

基于WSL Docker使用宿主机GPU进行QUBIC虚拟货币挖矿


首先检查CUDA环境是否正确: 命令行运行: nvidia-smi 输出: 开始环境搭建 01.启动

[Linux]ban sshd fail Login IP with Generate ban list


Ban sshd fail login ip. package util import ( "fmt" "github.com/stretchr/testify/assert" "io/ioutil" "os" "sort" "strings" "testing" "time" )

Windows Set Disk Readonly


setp 1: enter disk manager cmd. diskpart setp 2: list all disk. list vol setp 3: select your disk. select vol 2 setp 4: set readonly. att vol set r

Ubuntu 20.04.2.0 Desktop access and mount WIndows 10 20H2 Samba Service


setp 1: install software smbclient and cifs-utils. sudo apt-get install smbclient cifs-utils setp 2: mkdir your folder. cd /mnt sudo mkdir E last se