Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


How to fix “exec user process caused „no such file or directory“” in Docker

We ran into the following error when creating Docker-based GitHub Actions: the “standard_init_linux.go:211: exec user process caused „no such file or directory“” Everything worked locally and the Dockerfile looked good as well. Yet, when pushing the code to the build server (in this case GitHub), building …

Continue Reading

GitHub Actions — Create a Testing Matrix

Using GitHub Actions are a good use-case for testing purposes. You can conveniently provision testing dependencies like databases using the Docker-based architecture. You may also test your application against a combination of versions, a so called testing matrix. This tutorial outlines the steps to test your application against all combinations …

Continue Reading

Remove All Whitespace From a String in JavaScript

String replacements in JavaScript are a common task. It still can be tricky to replace all appearances using the string.replace() function. Removing all whitespace can be cumbersome when it comes to tabs and line breaks. Luckily, JavaScript’s string.replace() method supports regular expressions. This tutorial shows you how …

Continue Reading

Ubuntu/Debian — How to Test a Cron Job

Cron jobs are a nice way to automatically run scheduled tasks. The cron service in Linux systems is the typical approach when scheduling commands on the operating system. {{outline}} Testing a Cron Job Recently the certbot from Let’s Encrypt didn’t automatically renew SSL certificates anymore. We used a …

Continue Reading

Generate a Random Number in Range With JavaScript/Node.js

JavaScript has built-in methods to generate a single, random number. You can leverage this feature to create your own method generating a random number in a range between two other numbers. {{outline}} Random Integer Between X and Y (Exclusive Y) Let’s say you want to generate an integer in …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.