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

Docker Registry镜像缓存加速搭建:一次性解决国内无法访问问题


准备环境 一台国外服务器 服务器拥有完整的docker环境 拉取镜像创建容器实例 准备系统环境配置 创建目录 cd /home mkdir dockerhub cd dockerhub mkdir data 准备配置文件:/home/dockerhub/config.yml

[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

C# .NET Core Aspose.Words doc remove black page


At the end of the Document object, use the remove blank page method. example:  private void RemoveBlankPage(ref Document doc)        {            if (