sfgeo
sfgeo is the small program behind the country counts in Snowflake on a Raspberry Pi. It runs next to the proxy, reads only the packets that open each user’s connection, counts countries in memory and forgets every address as soon as it is counted. Part two of the series explains how.
Its code is on GitHub, together with a test anyone can run that fails if a single IP address appears in anything sfgeo writes, and the trend script used in part three with the daily numbers it ran on. The file in the repository is the one that produced the published counts: on 16 November its SHA-256 hash matched the one on my Pi.