Linux & MacOS: Counting Files In A Directory
You can count the number of files in a directory with the wc command . wc outputs the total number of newlines, bytes, and words. To count the number of files and fold...
How To Install Different Versions Of NodeJS
There are many reasons why you might need a different version of NodeJS. For instance, running an app that relies on an older version of NodeJS. NVM is a NodeJS version manag...
How To Uninstall A Global Npm Package
Uninstalling a globally installed NPM package is similar to the command for installing one: Here we use instead of ....
What Is Policy As Code (POC)?
Policy as code is the idea of automating the compliance of a software environment using software instead of a staff member or team. Depending on the software system under discussion, you might need to comply with different policies. For example, some financial systems need to be ...
Repeat Words X Times |PHP
Repeating a given string several times is something you rarely have to do as a developer, however, sometimes you need to repeat white spaces to pad some text to keep spacing even across a list. You can use either a loop or the built-in PHP function to perform this action. The function ta...
Adding A Copy Button To HighlightJS Code Snippets
The code below produces the code snippet shown above using HighlightJS and some custom JS to append a click to copy button to the snippet. ...