Linux其他 [Inkit wiki]

用户工具

站点工具


prog:linuxother

Linux其他

pip

pip list --outdated --format freeze|awk -F'=' '{print $1}'|xargs pip install --upgrade
pip install uprade all

goaccess

goaccess -f /home/wwwlogs/access.log --log-format=COMBINED -o /home/wwwroot/homeweb/report.html --real-time-html --addr=10.10.10.7 --port=8022 -daemon

wget https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=AqZqwCuPm4qGhymA&suffix=tar.gz

goaccess --keep-db-files --load-from-disk

esxi

0A65P-00HD0-3Z5M1-M097M-22P7H

VMware vCenter 7.0 Standard
104HH-D4343-07879-MV08K-2D2H2
410NA-DW28H-H74K1-ZK882-948L4
406DK-FWHEH-075K8-XAC06-0JH08

VMware vSphere ESXi 7.0 Enterprise Plus
JJ2WR-25L9P-H71A8-6J20P-C0K3F
HN2X0-0DH5M-M78Q1-780HH-CN214
JH09A-2YL84-M7EC8-FL0K2-3N2J2

视频与图像转换

#!/bin/bash
for i in 'find /home/download -name "*.mp4" -size +1000M';
do
ffmpeg -i $i -r 24 -b 3000k -minrate 1000k -maxrate 4000k C$i
echo "resize mp4 $i to 3k rate";
done


#!/bin/bash
echo "resize image who is bigger than 100k";
for i in `find . -size +100k`;
do
convert $i -resize 50% $i;
echo "resize image $i to 50%";
done

VSCode

主题:srcery

# vi /etc/sysctl.conf
fs.inotify.max_user_watches=524288

# Bash
sysctl -p

# VS Code setting files.watcherExclude
"files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true
}
prog/linuxother.txt · 最后更改: 2020/11/22 11:53 由 inkit