Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

GitHub Actions — Using MongoDB

GitHub Actions provide powerful automation, like running tests for your codebase. Keeping your continuous integration pipeline close to your code is a sweet setup. Typically, an application requires a database dependency. If you’re in the need for MongoDB when using GitHub Actions, this tutorial is for you! {{outline}} Use …

Continue Reading

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

Generate a Random String in Node.js or JavaScript

Generating random strings in Node.js or JavaScript is useful in various situations. For example, when generating an application or encryption key you want to create random strings with a minimal chance of duplication or collision. This tutorial shows you two ways to create a random string with JavaScript. {{outline} …

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
Page 1 of 64

Explore the Library

Find interesting tutorials and solutions for your problems.