Skip to content

Instantly share code, notes, and snippets.

View imlyzh's full-sized avatar
🕊️
Gu gugu

Lyzh imlyzh

🕊️
Gu gugu
View GitHub Profile
@imlyzh
imlyzh / get-cn-ipv4.sh
Created July 20, 2020 19:09 — forked from abersheeran/get-cn-ipv4.sh
Chinese IPv4
wget -c http://ftp.apnic.net/stats/apnic/delegated-apnic-latest
cat delegated-apnic-latest | awk -F '|' '/CN/&&/ipv4/ {print $4 "/" 32-log($5)/log(2)}' | cat > ip.txt