Skip to content

Instantly share code, notes, and snippets.

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

Lyzh imlyzh

🕊️
Gu gugu
View GitHub Profile
@abersheeran
abersheeran / get-cn-ipv4.sh
Last active March 22, 2024 06:38
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