Vim filter contents replaced with an error

One of the features of vim is it's ability to filter contents of the file through a command and return the output back to the buffer. This could be used for example for fixing the indentation on the file or generally formatting the document. Part of the official documentation for…

A dead-simple Laravel test watcher

I am spoiled by the many test watchers from the javascript world that do all the file change watching and polling on your behalf, to rerun the tests the moment you save a particular file. This feature usually comes out of the box, especially with the more complex tools like Jest …

Finally understood git reset

Git is a rather beefy tool, boasting up to 150 subcommands, with the exact figure varying depending on the git version. Using the method from the thread on my machine: $ git help -a | grep "^ " | wc -l 144 The 144 subcommands currently, however skewed the above metric…

A recent css-loader in Laravel Breeze problem

Installing Laravel Breeze following its documentation yesterday made a sudden turn downwards, as I did not expect that to happen in the Laravel ecosystem. However, the problem is connected to the javascript and npm side of the coin, where hoping for the best and expecting the wor…

Fighting Docker iptables on Arch

A strange issue I could not find a meaningful explanation anywhere regarding running docker-compose script and iptables firewall on Arch Linux. Steps to reproduce assume bare iptables, Docker and docker-compose available. Step 1. Start Docker Start the docker.service via systemct…

Install Nextcloud with OnlyOffice and Postgres

In the previous short article about installing Nextcloud I did not provide much details, apart from port configuration (that might even be needed depending on other factors). The setup I chose just worked. However, I too found the basic SQLite database performance a little bit la…

Another way to combine local repositories

A quick and dirty way I usually combine private repositories is to use the --rebase option for git pull. I have written about such option already in a post about keeping git fork in sync with the upstream. Here's how to do it: git remote add --fetch other ../other-repository git …