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.


JavaScript Map — Create From Object

The ECMAScript 2015 specification introduced a Map class. A Map instance provides convenient methods around key-value-pairs. Objects in JavaScript are key-value-pairs as well. Yet, you can’t pass an existing object to the map constructor. This tutorial shows you how to create a JavaScript map from an existing object. {{outline} …

Continue Reading

Ubuntu/Debian — How to Shutdown a Machine

Occasionally you need to shut down or reboot your Linux servers. The Linux operating system comes with the built-in shutdown command. This command allows you to power off or reboot a computer. This tutorial shows you how to shut down or reboot a Linux machine. {{outline}} Shutdown Your Ubuntu/Debian …

Continue Reading

nginx — How to Fix Unknown "connection_upgrade" Variable

You may encounter the $connection_upgrade variable in your nginx configuration when working with Websockets or using an nginx config generator. The $connection_upgrade variable isn’t available by default. Yet, it’s a recommended practice to define and use it in your reverse proxy settings. This tutorial shows you …

Continue Reading

nginx — How to Fix “ssl” Directive Is Deprecated, Use “listen … ssl”

When updating nginx to a newer version, you may run into deprecated configurations. Nginx uses a YAML-like definition format to create configurations. This format evolves over time by adding, removing, or changing keywords. This tutorial shows you how to fix nginx’s “ssl” deprecation warning telling you to use “listen …

Continue Reading

Node.js — How to Touch a File

UNIX-based operating systems have a touch utility available on the command line. touch updates the access and modification times of a given file to the current time. A nice benefit: touch also creates the given file if it doesn’t exist. This tutorial shows you how to implement a touch-like …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.