Archive Post

shc+upx加密bash shell脚本

1、安装shcmakeecho "y" |make install2、安装ucltar zvxf ./ucl-1.03.tar.gz -C /opt/./configure && make…

sshpass+rsync复制文件到远程主机

echo "<密码>" |sshpass -d0 rsync -av --timeout=120 --progress -e ssh…

ssh-keyscan查看远程机器的公钥

ssh-keyscan -4 -p 22 -t rsa -T 10 <remote_host>

Megacli查看硬盘的rebuild进度

MegaCli -PDList -aall 2>/dev/null | sed -n '/Enclosure Device ID/N;s/\n/\…

FFmpeg命令行 视频转为GIF 动图

ffmpeg -ss 00:00:15 -t 5 -i Test.mov -s 640x360 -r…

虚拟ip的添加和删除

添加: /sbin/ip -f inet addr add ${ip}/32 brd ${ip} dev ${dev}…

从APNIC(亚太注册机构)获取中国区IP地址网段信息的bash shell脚本

#!/bin/bash curl -sLk -o - http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest 2>/dev/null |grep 'apnic|CN|ipv4' |…

wondershaper网卡限速

解除网卡限速 /usr/bin/wondershaper -c -a<网卡> 对网卡进行限速 /usr/bin/wondershaper -a<网卡>-d<下行带宽kbps>-u<上行带宽kbps> 查看限速 /usr/bin/wondershaper -s…

wireguard两端配置

A端(流量节点): [Interface] PrivateKey = uDpppS+O0XUGUZWM4rhiGAx6yiEriT7MBc5ImmL0Wn0= ListenPort = 4784 (A端监听端口) PostUp…

awk进制数相互转换

十进制转十六进制 echo -n "4294967295" |awk '{printf"0x%x",$1}' 十六进制转十进制 echo "0xffffffff" |awk…