Skip to content

Instantly share code, notes, and snippets.

@leyle
leyle / Office_kms
Created June 20, 2024 08:36 — forked from OkoyaUsman/Office_kms
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@leyle
leyle / youtube-dl.conf
Created August 13, 2020 14:10
youtube-dl configuration
# /etc/youtube-dl.conf
--proxy socks5://127.0.0.1:2086/
-o %(title)s.%(ext)s
-f bestvideo+bestaudio
--merge-output-format mp4
@leyle
leyle / dockerps
Last active July 28, 2020 03:06
docker ps format
# https://docs.docker.com/engine/reference/commandline/ps/
alias dockerps='docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}\t{{.Networks}}"'
@leyle
leyle / no_proxy_list.txt
Last active August 2, 2022 10:42
no proxy domain list for firefox
# firefox format
192.168.2.0/24,.youtube.com,.google.com,.ytimg.com,.gstatic.com,.ggpht.com,.googleusercontent.com,.googlevideo.com,
# switchyomega format
192.168.2.0/24
*.youtube.com
*.google.com
*.ytimg.com
*.gstatic.com
*.ggpht.com
@leyle
leyle / network_size_human.py
Last active May 19, 2019 14:26
字节单位转换
def size_human(size):
if size < 1024:
size = "%ldByte" % size
return size
elif size < 1048576:
size = "%.2fKB" % (size / 1024.0)
return size
elif size < 1073741824: