Posts.
Notes, experiments and mistakes documented in real-time. Some of these are useful. Most of them are at least specific.
Ever ran a database migration only for it to fail halfway through, and then you're stuck with a partially migrated database? Then you try to run a rollback, which fails because the database is not on the previous version, nor is it on the next version, it's somewhere in between, so you have to cleanup manually. I've had this problem way too many times, so I finally got bothered by it enough to create a solution for myself.
You are using Docker wrong
I see many developers using Docker wrong. They still run everything locally, and only use Docker in the CI/CD pipeline. While this has it's benefits, there's still a lot of potential being missed.
Auto versioning your app with a simple bash script
To automatically version your app can be pretty complicated and a lot of solutions require complex dependencies and configurations. In this post I will show you how to do it with just a simple Bash script and Git.
Laravel CSP and BrowserSync
In this post, I'll show you how to set up Content Security Policy (CSP) and BrowserSync in a Laravel project.
Good money.
I don't believe we shall ever have a good money again before we take the thing out of the hands of government - F. A. Hayek
Are cookies really the most important thing for your business?
The number one priority for so many businesses these days seem to be to get your oh so precious consent in order track you with cookies, and don't you dare do anything on their website before you've given it!
How to add line numbers to pre tags
Reading code is easier when you have line numbers, but how can you show line numbers in a <pre> tag? This can easily be solved with a few lines of JS and CSS, no need for a big external library.
UX tip for external links
Clicking links going to an external site can be annoying if you aren't prepared for that. To improve the user experience you should show some kind of indicator for external links.