G.GY

Work tips

清理Docker <none> 镜像

docker rmi $(docker images | grep none | awk '{print $3}')

解压和压缩Android ramdisk

解压

gunzip -c ../ramdisk | cpio -i -d

压缩

find . | cpio -o -H newc | gzip -n -9 > ../ramdisk

Esxi升级系统

esxcli software profile update -p ESXi-6.5.0-20170404001-standard -d $PWD/esxi.zip

HTML 跳转

<meta http-equiv="refresh" content="1;url=https://g.cn"> 

Centos enable EPEL

yum install epel-release

or 

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

kms

# tpc
slmgr -ipk 73KQT-CD9G6-K7TQG-66MRP-CQ22C

slmgr -skms kms.03k.org

slmgr -ato