Latest from the blog
The fresh new website
For quite some time now my website has been using Remix and hosted on Vercel. It was built quite some time ago, and is still running on Node18. The other day I got an e-mail from Vercel saying they will remove support for Node18, so the hunt for a new stack started.
Read more →Non free codecs on tumbleweed
I have been an Ubuntu user in one way or another for as long as I can remember. They ship with all the proprietary codecs you could possibly need. After a recent switch to openSUSE tumbleweed, it took quite a while to get video playback working as expected.
Read more →Ubuntu connectivity checking
This is a Gnome feature in NetworkManager that will check the network for you. This has been configured by Ubuntu to send a ping to connectivity-check.ubuntu.com every 300 seconds.
Read more →Interfaces over Unions
Unions have started coming into PHP with the release of version 8. We have been using them a bit in typescript and have found that opting for an interface is much better. Interfaces clean up the flow of your code and make things much more readable by eliminating the need for many if statements.
Read more →Git Repository Clean Up
After you have been developing a project for some time your local git repo becomes detached from the repository on 'origin'. Having loads of local branches that are not needs because they have been merged in already. Or all of the remote branches that are no longer on the remote. There are a few commands you can run to clean things up a bit when you feel things are getting cluttered.
Read more →ReactJS Router Lazy Loading Pages
When creating a single page app application with ReactJS router. Your bundle size can get quite big when having quite a few pages. Loading all this in one can hinder your performance.
Read more →Hosting a static site with minio and nginx
Hosting a static site is supper simple with aws however you lose some of the customisability of URLs and redirects. By using minio object store and nginx as a proxy you get back all the control over your redirects and URLs.
Read more →Use your .env file in bash
The `.env` project has take over the configuration variable war's since ruby started the project some time ago, It's getting some competition from `ymal` however I can't see me moving until I find a good bash solution.
Read more →Create git tag on last non merge commit
I have been putting a lot of emphasis on generating change logs using conventional change log. Unfortunately the dev community has gone towards squashing and merging. As a result of this conventional changeling doesn't work of the tag is on a merge commit. This command will generate a tag on the last non merge commit to ensure our changelog works.
Read more →Highlight active window in tmux and neovim
With my recent upgrade to Vim Neovom. I was able to implement a really nice features that integrate with tmux. I am now able to seamlessly highlight the active split with a lighter background color.
Read more →