LSN #2 Understanding umask

umask (user file creation mask) is a setting in Linux to control default file permissions for newly created files and directories. By default a file in Linux is created 666 permissions (read, write, but no execute) & directories are created with 777 permissions ( read, write and execute). umask subtracts the…

LSN #1 - Stress-ng to load test Linux

When setting up Linux monitoring, you may need to a way to spike CPU or put pressure on the hosts memory to test metrics and alerting. My use case was with Zabbix and having their agent installed in machines. Their Linux template comes with monitoring and triggers that can send…

Machine Learning example with .pkl files and flask

Below is a quick example of setting up and machine learning model using python. You train a model, create a scoring script, set up a docker container and host the API endpoint in a container. JSON can be passed to this API and a response is given. Instructions Step 1:…