Blog posts

  1. TIL: Allowing CORS for specific subdomains with NGINX

    Here’s a quick blog to add to an NGINX config to allow CORS for subdomains, without the wide-open policy you get when using *, taken from this StackOverflow answer: map $http_origin $allow_origin { ~^https?://(.*\.)?my.domain(:\d+)?$ $http_origin; default ""; } server { listen 80; listen [::]:80; … add_header 'Access-Control-Allow-Origin' $allow_origin;
    Read more
  2. I’m still here

    Just a very quick post to say this blog isn’t dead! It’s been a while since my last post, but I haven’t really had time to do much blog writing recently. I’ve been feeling a bit burned-out with tech recently, and just haven’t been spending much of my free time working on things. Instead, as […]
    Read more
  3. Quick snippet: Detect who pays for Twitter

    Even though Twitter may have tried to disguise who pays for Blue, and who has a legacy verified account, they left the ld-json fields intact. Here’s a quick script you can use an in an Arc boost to check for the field and colour the checkmark Red if they pay: setTimeout(() => { const ldJson […]
    Read more
  4. I don’t care about ChatGPT

    I’m starting to feel like I’m in the minority here, because so many people are talking about it, but I genuinely don’t have any interest in GPT or any of it’s derivatives. I get that it looks like magic to a lot of people, and almost feels like actually intelligent artificial intelligence, but I get […]
    Read more
  5. TIL: resizing images on-the-fly with nginx

    Because I’ve started using WordPress as a Markdown backend for 11ty, the 11ty image plugin no longer works, which is a bummer. So for a while I’ve been serving images at their default resolution which is to say, too big. As it turns out, there’s an nginx module, image_filter, that can be used to resize […]
    Read more