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.


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

Node.js — Check If a Path Is a File

When interacting with the local hard disk, you may need to check whether an existing path is a file or a directory. Node.js comes with the fs core module providing dozens of useful low-level methods to interact with the hard disk. This tutorial shows you how to compose an …

Continue Reading
Page 1 of 45

Explore the Library

Find interesting tutorials and solutions for your problems.