The snippet below will look inside directory /inputdir and archives the sub-directory called mydirectorywithfiles. The resulting tar file is written to /outdir/mytarfile.tar.gz.
Using OAuth2 token in GCP Storage API with nodejs
You can use short-lived OAuth2 tokens in many Google Cloud API calls, however you may run into some interesting limitations and quirks, more specifically in […]
Alternative to Wget and cURL
If you are working on a Linux device that does not have Wget and cURL, or a limited version of either commands, for instance Busybox, […]
Enabling TTL on MongoDB GridFS
Anything you store in MongoDB’s GridFS is stored in 2 collections. For instance if your files are loaded in a GridFS bucket called ‘images’ you […]
Generate Memory Usage on Linux
For testing some monitoring software on my Linux system I needed to use up most of the RAM using basic Linux commands. The following worked […]
Generate CPU Usage on Linux
In order to test some monitoring software on a Linux system I wanted to generate CPU Spikes to test some alarms and metrics. There are […]
Remove file on Full Disk
If one of your Linux volumes is 100% full you may end up having to deal with a scenario where you can’t even remove files […]
How to tail a log file in Windows
Tailing a log file in Linux is very easy with the tail command, for instance: However, Windows does not have a tail command. Luckily it […]
Parse delimited string into rows
Some time ago I had to build an integration app that would on occasion query from a SQL Server 2012 database and based on the […]
Open up firewalld port on Linux
It seems to be a task that I often perform when setting up new Linux VMs or servers; opening up a port so that it […]