Entries by Nikolas

How To Automate A Task With Windows Task Scheduler

HOW TO CREATE A SCHEDULED TASK THAT SHUTS DOWN THE COMPUTER AT 11 PM EVERY WEEKDAY. Introduction Windows is an operating system that manages a variety of different tasks in the background, such as automatic updates and installed third-party software updates. There are occasions though, that you might want to automate a task that you […]

How To Provision Kubernetes Clusters In GCP With Terraform

Introduction In this article, you will learn how to create clusters on the GCP Google Kubernetes Engine (GKE) with the gcloud command-line interface and Terraform. By the end of the tutorial, you will automate creating a cluster with a single command. GKE is a managed Kubernetes service provided by GCP, meaning that that the Google […]

,

Cartooning A Webcam Stream With Python’s OpenCV

Introduction In this tutorial, you will learn how to use OpenCV Python’s library for cartooning a webcam stream. While this is a relatively simple coding example, will require a strong CPU to maintain good performance, especially single-thread performance. A processor like Core i5 9600k or Ryzen 5 5600X  and higher is recommended. Keep in mind […]

,

How To Install PortWorx On A Kubernetes Cluster

Introduction Portworx is a software-defined persistent storage solution designed and purpose-built for applications deployed as containers, via container orchestrators such as Kubernetes, Nomad, Marathon,  and Docker Swarm. In this tutorial, you will learn how to install Portworx on a Kubernetes Cluster consisting of 3 nodes.  It is a clustered block storage solution providing a Cloud-Native […]

How To Run Rootless Docker in Dockerized Jenkins

Introduction Jenkins is an essential tool in the DevOps world, and countless organizations use it for their CI/CD pipeline needs. However, security concerns can arise when running Jenkins, especially when attempting to mount the /var/run/docker.sock from the host to the dockerized Jenkins pod. By default, the image provided by Jenkins does not run as root, […]

Linux Commands Cheat Sheet

System Administration System Information uname -a uname -r IP Address Management ifconfig eth0 #show specific interface On Centos ifconfig ens3 #show specific interface On Ubuntu ip addr show ens3 #show specific interface hostname -I|cut -d" " -f 1 #current ip of system/node hostname -I | awk {'print $1'} Disk Information Display All FileSystems df -ah […]

Fizzbuzz Challenge In Javascript, Bash, Python, and PhP

Introduction The “Fizz-Buzz programming test” is an interview technical question aiming to filter out the 99.5% of programming job candidates who can’t seem to program their way out of a wet paper bag. The text of the programming assignment is as follows: Given a number n, for each integer i in the range from 1 […]

Git Commands Cheat Sheet

Git Basics Creating a new repository mkdir project cd project git init git remote add origin git@github.com:yourlogin/your-repo.git git add . git commit -am “new repository” git push -u origin master Git Clone Clone repo located at<repo>onto the local machine. The original repo can be located on the local filesystem or on a remote machine via […]

How To Create A CI/CD Pipeline With Jenkins

Introduction In a previous tutorial, you learned how to install Jenkins on a Kubernetes Cluster.  In this tutorial, we will create a Jenkins CI/CD pipeline to build a docker image, test it on a staging server to make sure it works as expected, and then push it to Docker Hub. Prerequisites Jenkins installed on a […]

Automatic Scaling Jenkins Pods on Kubernetes

Introduction Jenkins is one of the most popular CI/CD tools for many companies nowadays, but it doesn’t scale out of the box. One could simply add more nodes and connect them with the Master Jenkins node, but that would consume extra infrastructure resources with all the negatives that come with it. In this tutorial, you […]