TL:DR; DigitalOcean API returns /proc/stat data in its CPU metrics API, and here I’ll show you how to convert that to something usefull. After years of developers begging, DigitalOcean opened…
Read moreCombining Caddy with Nginx
If you have needs beyond what Caddy offers, you setup a reverse proxy to Nginx. Let’s look at an example where you would use Nginx for caching. I also added…
Read moreServing WordPress with Caddy 2
I’ve been using Nginx for about a decade, and beyond using Varnish every now and then I haven’t really had the need to use anything else. Well, recently I started…
Read morejQuery resize-end event
Recently I was asked about jQuery’s resize event. It runs its resize while the users resizes the window – meaning it can be triggered hundreds of times before ending the…
Read moreFirst impression of Digital Ocean’s Managed Databases
Last night Digital Ocean launched Managed Databases, a service I have been looking forward to. For now it’s only available for PostgreSQL (which I hardly ever use) but MySQL support…
Read moreInternationalising date strings in Craft
When working with Craft CMS and translating strings, you might need to translate dates as well. After all, countries format these differently. For example, while the US often uses "month…
Read more