AWS Form Processing

Serverless form processing for (static) websites

Easy and cheap (and privacy aware?) Your team is building a static website for another super frugal client, Nofrills Coffee. You’ve already figured out how to host it in the easiest and cheapest way possible, but the client also needs to be able to receive feedback from users through a web form. You wish the front end developers could just submit the form to one of those “free” services like Formspree and Simple Form, but you’re too wary of security and privacy to hand things over like that. [Read More]

Nginx with PCRE

How to enable Perl compatible regular expressions in Nginx

A CGI use case Imagine you’re working on a legacy website that’s being converted to purely static HTML pages. The project was originally built using CGI scripts (oh, the good old days) and now your boss wants all the old URLs ending in .cgi to redirect to their equivalent .html counterparts. Because your team has decided to use Nginx to serve the new website, you come up with the following nginx. [Read More]
docker  nginx  regex  web 

Desktop is King

Freeing up my lap at last

A big, messy smartphone That’s what I see whenever I open a laptop in the hope of repairing it or pimping it up. My efforts tend to result in resentful failures, and I either leave the thing broken or send it to a technician. Me, fixing a clumsy block of metal and plastic where every single piece is soldered up or goes inside of a chip? No, thanks. Before you think I give up too fast, let me tell you that, sure, I could learn how to fix my own laptops, but that’s not the point; the point is I don’t want to. [Read More]
diy  hardware  home  tools  web 

Caching and Fingerprinting

A short story about a great caching strategy

Security! Security! With a good chunk of the web moving to HTTPS for good, my previous team and I decided to join the trend and put all our front end applications behind the now fashionable security layer. You don’t wanna miss the S parteeeeeeey! We used to host our front end applications on Amazon S3, which is just a file system. As such, it doesn’t offer TLS/SSL on its own; you need to complement it with Amazon CloudFront if you want to have a static website behind HTTPS. [Read More]