Lately been doing a bit with JSON as a config file. It is a convenient way to store config variables. Procedural/Imperative style (untested, needs error handling, etc): OOP if it floats your boat (untested, needs error handling, etc):
Month: June 2022
Cron Job for Let’s Encrypt nginx standalone renew Ubuntu
I run nginx as a reverse proxy for sites that use SSL. Normally I’m doing something a bit strange so it doesn’t quite work having certbot manage my configs. This will renew ssl certs at 3am each morning if needed.
Getting GeoJson Multipolygon for political units
Visit: https://nominatim.openstreetmap.org/ui/ and search for the location. Select the Details Button on the left for the entity you are interested in. Look for the value for the OSM relation id. In this case it is: 5396194. Visit the following URL: http://polygons.openstreetmap.fr/index.py and enter in the OSM relation id from above. You can use on eof… Continue reading Getting GeoJson Multipolygon for political units