Skip to content

Instantly share code, notes, and snippets.

View n-ts's full-sized avatar

Nikoloz n-ts

  • Georgia / Estonia / Kuwait
View GitHub Profile
@n-ts
n-ts / All_Public_IPv4_CIDR_notations.txt
Created February 25, 2025 08:54
All possible public (non private or reserved) IPv4 ranges in CIDR notion format
1.0.0.0/8
2.0.0.0/7
4.0.0.0/6
8.0.0.0/7
11.0.0.0/8
12.0.0.0/6
16.0.0.0/4
32.0.0.0/3
64.0.0.0/3
@n-ts
n-ts / worker.js
Created October 3, 2018 20:21
Cloudflare Workers - Load balancing to nearest datacenter from current POP
/*
--------------------------------------------------------
Please note that this grouping is just for example...
You can rearrange POPs, remove or add dacaneters according to your needs.
--------------------------------------------------------
First, we have to get all Cloudflare POP codes (three letter airport codes) from https://www.cloudflarestatus.com/
North America is routed to Chigaco datacenter;
Europe, Africa and Middle East is routed to Amsterdam datacenter;