Categories

Azure

Service Endpoints vs Private Links in Azure

Microsoft Azure provides many different options to approach networking, starting from Azure VPN, ExpressRoute, Azure Route Server, NVAs, to name a few. These are more likely to be imp...

In Azure, Oct 10, 2021

Azure VMs Auto-shutdown

Talking about VMs shutdown operation, we got few ways we could do it in Azure: Stop VMs manually from the Portal. Running the az CLI command, described in How to easily Start, Stop,...

In Azure, Sep 08, 2021

Scale AKS user node pool to 0

In case you missed some of these posts: Create AKS cluster on Azure Start and Stop AKS cluster Configure AKS automatic upgrades

In Azure, Kubernetes, Sep 06, 2021

Schedule Automated Start and Stop for Azure VMs

Scheduling automated start and stop for Azure VMs is almost as good as provisioning and deprovisioning infrastructure on-demand, by using Infrastructure as Code (IaC) tools, like Terr...

In Azure, Sep 04, 2021

Configure AKS automatic upgrades

Regarding to managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well...

In Azure, Kubernetes, Sep 01, 2021

Configure Azure CLI automatic upgrades

As part of the Azure CLI series, today we are going to see how we can configure automatic upgrades.

In Azure, Aug 31, 2021

How to stop and start Kubernetes cluster on Azure

In the previous Azure post, we’ve shown how to create an Azure Kubernetes Service (AKS) cluster via the Azure CLI. Today, we’ll focus on how to stop and start AKS cluster using the of...

In Azure, Kubernetes, Apr 04, 2021

How to create Kubernetes cluster on Azure

Azure Kubernetes Service (AKS) is a managed Kubernetes service that helps you to deploy and manage clusters with ease. This post describes the commands in steps required to setup a Ku...

In Azure, Kubernetes, Mar 14, 2021

Push Docker Images to Azure Container Registry using Azure CLI

Azure Container Registry is a private container registry where you can upload and manage your Docker and Open Container Initiative (OCI) images. At the time of writing, the cost of th...

In Azure, Docker, Mar 07, 2021

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

How to easily Start, Stop, Restart or Delete Azure VMs

Managing Azure Virtual Machines through the Portal could be pretty straighforward. But, it requires multiple steps using the GUI. For example, you’ll have to login to the Portal first...

In Azure, Oct 28, 2019

How to reset an Azure VM password

Losing and resetting passwords can be quite frustrating, especially if you are working as an IT guy, who have to reset passwords every day for other employees. The same thing could ha...

In Azure, Oct 26, 2019

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of a relational and non-relational database administration without the two magic words: backup and restore. Backing up a da...

In Azure, Oct 17, 2019

How to rename an Azure SQL database using Azure CLI

As a part of an Azure SQL Database administration series, this post will be a follow up from the last one, where i will write about renaming Azure SQL database, which is kind of a com...

In Azure, Oct 14, 2019

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that i’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

How to buy custom domain name with Azure App Service Domains

Azure App Service Domains let you buy and manage top-level domains directly from the Azure Portal. These domains will be hosted on the Azure DNS Service, that you can easily map to yo...

In Azure, Oct 11, 2019

How to Direct-Upload to Azure Managed Disks

A few days ago, Microsoft announced the preview of direct-upload to Azure Managed Disks. So, there are two ways you could move a VHD to the Azure cloud as a managed disk: Upload the ...

In Azure, Oct 08, 2019

How to restore deleted Azure Storage Blobs

Accidental deletion of files can happen to anyone working either on-premise or in the cloud. As a DevOps engineer who is responsible for managing access permissions to resources, the ...

In Azure, Oct 04, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and devops, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

Manage Azure subscriptions

Azure subscriptions are used for deploying and consuming Azure resources. A single Azure account can have multiple subscriptions, but there are some limitations. You can combine multi...

In Azure, Sep 26, 2019

Install Azure CLI 2.0 on macOS with brew

The Azure CLI is a command-line tool that let you manage the Azure resources from your local terminal. Using the terminal can bring a lot of advantages, like being more efficient and ...

In Azure, Sep 24, 2019

Git

How to remove empty commits in Git

In the previous tutorial, we’ve learned How to create empty commits in Git. Let’s see how can we remove them as well.

In Git, Aug 27, 2021

How to list and count commits in Git

As part of the Git series, today we are going to see how can we list and count empty and non empty commits.

In Git, Aug 21, 2021

How to create empty commits in Git

As a DevOps engineer, you must have heard at least something about GitOps. GitOps is a set of practices that allows to manage infrastructure and application configurations using Git a...

In Git, Aug 15, 2021

Use Git Lfs with existing Bitbucket Repository

Git LFS allows users to save space by storing binary files in a different location, so in this tutorial I’m going to show you how can you operate and manage your repo with Git LFS.

In Git, Sep 28, 2019

AWS

The AWS Access Key Id Does Not Exist in our Records - Solution

Working with multiple AWS account profiles could sometimes be not so pleasent experience, especially when handling different AWS named profiles for different purposes. The AWS Access ...

In AWS, Oct 26, 2021

How to install Nomad on AWS EC2 Amazon Linux 2 instance

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, the deployments, and managing the resour...

In AWS, Nomad, Oct 13, 2021

How to install Terraform on AWS EC2 Amazon Linux 2 instance

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the terraform official release site, so you need to get the late...

In AWS, Terraform, Oct 11, 2021

How to install Ansible on AWS EC2 Amazon Linux 2 instance

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In AWS, Ansible, Oct 07, 2021

Get AWS Region Name in Terraform

The following tutorial will be a step by step guide on how to get the current AWS region name in Terraform.

In Terraform, AWS, Oct 06, 2021

How to install Nginx on AWS EC2 Amazon Linux 2 instance

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In AWS, Nginx, Oct 05, 2021

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a begginer because AWS is facing a lack of CloudFormation doc...

In CloudFormation, AWS, Oct 03, 2021

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained how to ssh into a fargate container. In this tutorial, I will cover some steps on how can you get the private IP address of a fargate ECS container, so that ...

In AWS, Sep 13, 2021

Define the CPU and Memory values for tasks hosted on Fargate

Migrating your ec2 instances on ECS to fargate will let you focus on building applications instead of managing servers. Maybe you will ask yourself, which size do you need to pick up ...

In AWS, Sep 09, 2021

How to remove ECS task definitions

For those who have experience with AWS ECS, we all know how frustrating is sometimes that we just can’t delete task definitions. The only option is to update all task definition revis...

In AWS, Aug 25, 2021

How to install Podman on AWS EC2 Amazon Linux 2 instance

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m gonna show you how to install po...

In AWS, Podman, Aug 10, 2021

How to pg_dump to S3 directly

Just before we start with this tutorial, I just wanna say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you are...

In PostgreSQL, AWS, Jul 29, 2021

How to join EC2 instance to ECS cluster

AWS ECS is a container orchestration tool and it could be a great starting point as a beginner devops engineer before jumping on the Kubernetes hype train. Using an Auto Scaling group...

In AWS, Jul 25, 2021

How to fix Docker login unknown shorthand flag error

In some of the previous posts I’ve covered the Authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

How to resolve AWS Elasticsearch cluster in red or yellow state

Understanding the ES cluster status state is crucial, when it comes to ES troubleshooting. If your role is to keep ES cluster healthy then you have to understand all the three states ...

In AWS, Jun 30, 2021

How to list S3 bucket size from the command line

AWS S3 as a service is pretty cheap and probably the most popular one among the rest of the cloud object storage services. S3 is most often used as a database backup storage, log stor...

In AWS, Jun 29, 2021

How to stop all running EC2 instances from the command line

Stopping preproduction, staging environment EC2 instances could be described sometimes as a good practice. In the next few lines, I’ll show you how you can easily stop all running EC2...

In AWS, Jun 27, 2021

SSH into an AWS ECS Fargate managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In AWS, Jun 22, 2021

How to fix ecs cloudformation template if it's stuck in the rollback state

If your microservices are using ECS services and the deployments are going through CloudFormation, that sometimes can cause weird issues. For example, if there is an application error...

In AWS, Mar 24, 2021

How to upload your local files to your AWS S3 bucket with AWS CLI

There are a lot of reasons for moving your local files into your AWS S3 bucket. Maybe you want to host your static files with S3 or you want to make a backup of your database, etc… In...

In AWS, Oct 15, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is a efficient and powerfull tool cause it enables developers and devops people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Oct 09, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and devops, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

Docker

Assign Static IP to a Docker Container

There are two types of static IPs, public and private IP addresses. We all know the public IP Docker mapping by now, using Nginx and port mapping. Today we are going to see how can we...

In Docker, Oct 24, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Sep 15, 2021

Filter the output of docker image ls

Sometimes using the filter flag as a part of the docker image ls command can be useful to figure out which images are taking space, which are dangling images or unused. In this tutori...

In Docker, Aug 26, 2021

How to search Docker Hub repositories from CLI

If you want to search for a specific docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

Docker Registry vs Docker Repository

Docker is one of that technologies that will probably stay for a while. In a matter of years, the IT world went from monolith to deploying applications on the edge in a couple of seco...

In Docker, Aug 23, 2021

How to install Docker on Debian 11

Finally Debian 11 is released on August 14th, 2021, and this version is marked as a stable version. This tutorial will show you the steps on how to install Docker on a new fresh Debi...

In Docker, Aug 18, 2021

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install docker-compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

How to copy files/folders to and from Docker Containers

There are situations when you need to copy files/folders from the container’s file system to the local machine or the reverse. You can achive that with Docker copy command. In this tu...

In Docker, Jul 08, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. Firstly, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Jul 06, 2021

How to install Docker on Rocky Linux 8

In the early December last year, RedHat took us all by suprise with the CentOS 8 End Of Life (EOL) announcement, that was scheduled for the end of 2021. In response to this, the origi...

In Docker, Jul 05, 2021

How to fix Docker login unknown shorthand flag error

In some of the previous posts I’ve covered the Authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

Useful docker and docker-compose commands

Working with docker-compose in a development environment can be challenging sometimes for the newcomers, unless you got the time on your hands to google everything from stack overflow...

In Docker, Mar 21, 2021

Push Docker Images to Azure Container Registry using Azure CLI

Azure Container Registry is a private container registry where you can upload and manage your Docker and Open Container Initiative (OCI) images. At the time of writing, the cost of th...

In Azure, Docker, Mar 07, 2021

Build a Docker Image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the DockerHub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

How to install Docker Compose on Ubuntu 19.04

Installing docker compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple docker containers, creating volumes, etc… But before installing docker ...

In Docker, Dec 15, 2019

How to install docker on Ubuntu 19.04

Following the steps below will let you realize that installing docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Dec 13, 2019

Kubernetes

Scale AKS user node pool to 0

In case you missed some of these posts: Create AKS cluster on Azure Start and Stop AKS cluster Configure AKS automatic upgrades

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding to managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well...

In Azure, Kubernetes, Sep 01, 2021

How to stop and start Kubernetes cluster on Azure

In the previous Azure post, we’ve shown how to create an Azure Kubernetes Service (AKS) cluster via the Azure CLI. Today, we’ll focus on how to stop and start AKS cluster using the of...

In Azure, Kubernetes, Apr 04, 2021

How to create Kubernetes cluster on Azure

Azure Kubernetes Service (AKS) is a managed Kubernetes service that helps you to deploy and manage clusters with ease. This post describes the commands in steps required to setup a Ku...

In Azure, Kubernetes, Mar 14, 2021

Ansible

How to install Ansible on AWS EC2 Amazon Linux 2 instance

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In AWS, Ansible, Oct 07, 2021

Reboot VMs with Ansible

Speaking of configuration management, Ansible is the most popular open-source automation tool out there. It’s mostly used for automating day to day operation activities, from installi...

In Ansible, Sep 14, 2021

How to install Ansible on Rocky Linux 8

If there is a need to simplify the deployments of your applications, manage your infrastructure servers, etc.. you can achieve it with ansible which is one of the most popular tool fo...

In Ansible, Jul 11, 2021

How to install Ansible on Ubuntu

Ansible is an IT automation tool that can help you to simplify the deployments of your applications, efficiently manage your infrastructure servers, and provides a lot of features and...

In Ansible, Ubuntu, Jun 06, 2021

How to get all the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the times we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an elastics...

In Ansible, Mar 28, 2021

Ubuntu

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Ubuntu, Podman, Aug 12, 2021

How to install Ansible on Ubuntu

Ansible is an IT automation tool that can help you to simplify the deployments of your applications, efficiently manage your infrastructure servers, and provides a lot of features and...

In Ansible, Ubuntu, Jun 06, 2021

Terraform

How to install Terraform on AWS EC2 Amazon Linux 2 instance

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the terraform official release site, so you need to get the late...

In AWS, Terraform, Oct 11, 2021

Get AWS Region Name in Terraform

The following tutorial will be a step by step guide on how to get the current AWS region name in Terraform.

In Terraform, AWS, Oct 06, 2021

How to make local archive_file to be available when deploying Terraform aws_lambda_function

In today’s blog post, I really need to share with you all a quick tip regarding Terraform’s aws_lambda_function resource and how to make the latest local data archive_file to be prese...

In Terraform, Sep 20, 2021

Reusing templates in Terraform

Working with Terraform and keeping the infrastructure code DRY has always been fun. If you’ve been deploying AWS S3 policies, or IAM policies, adding variables and making them reusabl...

In Terraform, Sep 12, 2021

How to fix Terraform's acquiring the state lock error

A couple of days ago, I was deploying a Terraform ECS cluster, and during the terraform plan command, i forgot to add a module. Didn’t want to wait it out until the command finish, so...

In Terraform, Jul 31, 2021

How to ignore changes in Terraform

Terraform is the most popular Infrastructure as Code tool mostly used for spinning up and managing infrastructure on the public cloud giants AWS, Azure, GCP and DigitalOcean. But, som...

In Terraform, Jul 23, 2021

Restrict Variable Values in Terraform

If you have worked before with Terraform by provisioning a cloud infrastructure and/or writing Terraform modules, you must have stumbled upon some variable validation issues. This cou...

In Terraform, Jul 18, 2021

How to install Terraform on Rocky Linux

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the Centos, so the Centos team announces that they are going to focus on the CentOS St...

In Terraform, Jul 02, 2021

How to install Terraform CLI on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So using terraform as infrastructure as code tool will efficiently minimize your code and speed up...

In Terraform, Jun 25, 2021

Mac

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In Mac, Jul 22, 2021

How to Install PowerShell on Mac

As a devops engineer, we most likely would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In Mac, Jul 16, 2021

How to fix kernel driver not installed (rc=-1908) on Mac

The first time you try to spin up a VM on Mac, you will probably go with VirtualBox as a Hypervisor, and honestly VBox is pretty good for beginners who just want to get the things don...

In Mac, Jul 07, 2021

PostgreSQL

POSTGRESQL ERROR: Canceling statement due to conflict with recovery

This article is focused on resolving Canceling statement due to conflict with recovery, which is a common issue when dealing with master-slave replication.

In PostgreSQL, Oct 14, 2021

How to list, remove and upgrade PostgreSQL cluster

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how can we list, remove and upgrade clusters, the easy way.

In PostgreSQL, Aug 11, 2021

How to terminate connections in PostgreSQL

As part of the PostgreSQL series, in today’s tutorial, we are going to focus on how to list and terminate connections. terminate, kill and drop will be used interchangeably through th...

In PostgreSQL, Aug 07, 2021

How to terminate idle transactions in PostgreSQL

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how to set idle_in_transaction_session_timeout parameter and handle idle transactions, so you won’t face ...

In PostgreSQL, Aug 04, 2021

How to resolve PostgreSQL FATAL: sorry, too many clients already

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how to deal with one of the most often seen postgresql errors:org.postgresql.util.PSQLException: FATAL: s...

In PostgreSQL, Aug 02, 2021

How to install PostgreSQL on Rocky Linux 8

Installing PostgreSQL on Rocky Linux follows the same procedure as MySQL. We need to enable the PostgreSQL module, install the desired version and enable the PostgreSQL service. Follo...

In PostgreSQL, Aug 01, 2021

How to pg_dump to S3 directly

Just before we start with this tutorial, I just wanna say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you are...

In PostgreSQL, AWS, Jul 29, 2021

Basic and Common PostgreSQL commands

In some of the previous posts, I’ve written about How to Backup and Restore a PostgreSQL Database and How To Show Database and table size in PostgreSQL. These are pretty common, basic...

In PostgreSQL, Jul 27, 2021

Show Database and table size in PostgreSQL

In this tutorial, we’ll see how we can show a database and table size in PostgreSQL. Planning a backup procedure, determing server instance size, could be few reasons to keep an eye o...

In PostgreSQL, Jul 19, 2021

How to Backup and Restore a PostgreSQL Database

As an open-source database, PostgreSQL is in the top 3 most popularly used databases which offen can be find as a managed service offered by the public cloud giants. In one of the pre...

In PostgreSQL, Jul 09, 2021

Elasticsearch

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index. from one ES cluster to another. So now if you want to back up a particular index, instead of storin...

In Elasticsearch, Sep 21, 2021

How to export and import Elasticsearch Index with Docker

Synchronizing the ES index data between your prod, dev and local ES cluster environment is now achievable with docker. Moving the index data, mapping or analyzer can be done through t...

In Elasticsearch, Sep 17, 2021

Elasticsearch Garbage Collection

Elasticsearch, as you might already know, is a free and open-source search and analytics engine developed in Java. In today’s topic we are going to cover the Garbage Collection part o...

In Elasticsearch, Sep 10, 2021

How to check if document exist in Elasticsearch

Sometimes there is a need to check whether a document exists or not in Elasticsearch. Following the ES documentation and the best practices, you can use the HEAD method instead of the...

In Elasticsearch, Sep 03, 2021

How to create Elasticsearch index

Creating an Elasticsearch index is a quick and easy process. In practise it’s an ELK API call that requires you to think of how many shards do you want to assign and replica shards as...

In Elasticsearch, Sep 02, 2021

How to check Elasticsearch Cluster health

Knowing how to get statistics and understand the output from an Elasticsearch cluster can be very useful for a DevOps guy. This tutorial is aimed to show you how to check Elasticsearc...

In Elasticsearch, Aug 30, 2021

How to manually change the allocation of shards

While updating the mapping on some of the ES clusters or doing a full reindex which are expensive operations, you may face a data node failure. Due to the node failure, there is a pos...

In Elasticsearch, Jul 13, 2021

MySQL

How to import CSV file into MySQL table

Importing the data through MySQL Workbench or phpmyadmin can cause some limitation issues, so things will get complicated. In this tutorial, I’m gonna show you how to import CSV file ...

In MySQL, Aug 03, 2021

How to install MySQL on Rocky Linux 8

Installing MySQL on Rocky Linux it’s quite easy and quick. A lot of today’s applications are using MySQL as a web database. MySQL is an open source database and offers a lot of features.

In MySQL, Jul 30, 2021

How to get database and table size in MySQL

In this tutorial, we’ll see how we can show a single and multiple database and table size in MySQL. Let’s get straight to the point.

In MySQL, Jul 21, 2021

How to Backup and Restore a MySQL Database

MySQL is one of the most popular open-source database engines. Manually backing up and restoring databases for whatever reasons could be found quite easy to execute, and we can see ho...

In MySQL, Jul 14, 2021

Jenkins

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

Redis

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Sep 29, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Jul 17, 2021

Nginx

Setup Nginx Proxy for Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of a proxy, mostly Nginx...

In Nginx, Oct 22, 2021

How to install Nginx on AWS EC2 Amazon Linux 2 instance

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In AWS, Nginx, Oct 05, 2021

How to enable CORS in Nginx

If you are trying to make API calls and you are getting the following error from nginx No Access-Control-Allow-Origin header is present on the requested resource you should definitely...

In Nginx, Sep 07, 2021

How to install Nginx on Debian 11

Installing Nginx on Debian 11 is pretty easy and straightforward. This tutorial will show you how to install it and enable HTTP traffic on your debian server.

In Nginx, Aug 22, 2021

Missing sites-available directory in Nginx

As part of the Nginx series, in today’s tutorial, we are going to see on how to add that missing sites-available subdirectory. The reason behind this, is because most of us have been ...

In Nginx, Aug 17, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like nodejs, python, ruby on rails, etc… I...

In Nginx, Aug 14, 2021

How to block visitors by country in Nginx

In some of mine previous posts, I wrote about how you can whitelist IPs in Nginx. In today’s tutorial, we are going to see how can we block specific countries in a few steps.

In Nginx, Aug 13, 2021

How to whitelist IPs in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw how to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Aug 06, 2021

How to install Nginx on Rocky Linux 8

If you need to implement a reverse proxy, load balancer or mail proxy, Nginx is the best-suited web server that can manage all of these actions. This tutorial will explain, how to ins...

In Nginx, Jul 20, 2021

Apache

How to create Apache reverse proxy for your application

Creating Apache reverse proxy follows a similar procedure as Nginx. In some of the previous posts, we saw how to set up Nginx reverse proxy, so today I’m going to show you exactly the...

In Apache, Sep 23, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL certificate. Let’s start.

In Apache, Aug 08, 2021

How to install Apache on Rocky Linux 8

Apache is one of the most popular, open source web servers that allows you to host your web content on internet. Apache can be installed easily and can run on any operating system. In...

In Apache, Jul 24, 2021

Rocky Linux

How to configure DHCP to fix the network connectivity on Rocky Linux

Some of the RHEL distros can cause common networking configuration issues on the first installation, so you will not be able to update the packages on a server or browse external Webs...

In Rocky Linux, Jul 26, 2021

PHP

How to determine the correct number of max children processes for PHP-FPM

Most of the PHP developers are using Nginx with php-fpm as the most efficient approach. Most likely nginx will throw php errors, that the server reached the pm.max_children number. It...

In PHP, Jul 28, 2021

Certbot

How to install Certbot on Rocky Linux 8

Installing certbot on your rocky linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Aug 05, 2021

Podman

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Ubuntu, Podman, Aug 12, 2021

How to install Podman on AWS EC2 Amazon Linux 2 instance

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m gonna show you how to install po...

In AWS, Podman, Aug 10, 2021

Linux

How to change permissions for Directories and Files recursively

Getting to know how to fix the directories and files permissions recursively, with a quick and easy method is always a good point. The crux of this tutorial is to understand how you c...

In Linux, Oct 25, 2021

Resolve (code=exited, status=2) in Nginx

Sometimes after nginx service restart and you’re trying to get the service status, you might get the following status code line:Process: 10316 ExecStop=/sbin/start-stop-daemon --quiet...

In Linux, Oct 20, 2021

Check Internet Speed from CLI on Linux

In this day and age, experiencing a slow internet connection could be a huge deal, especially for most of us who work remotely. Since we can do almost anything from the CLI, let’s sav...

In Linux, Oct 18, 2021

Get Public IP from CLI on Linux

Let’s speedrun the tutorial on how to get your public IP address from the command line interface for any whitelisting reason, on any Linux distro.

In Linux, Oct 16, 2021

How to detect and free Inode Usage on Linux

While I was maintaining a monitoring service for an AWS-based infrastructure the service daemon stopped working. After some digging on the host where the service was hosted, I find ou...

In Linux, Oct 09, 2021

Prevent Accidental rm -rf /*

We’ve all heard the infamous rm -rf /* command. Now, let’s see how can we prevent from happening many times again.

In Linux, Sep 30, 2021

Count Files within Directory in Linux

Sometimes, for some reason we need to pull up the number of files in a certain directory. As always, this could be done in a couple of ways. Let’s go through each of them.

In Linux, Sep 28, 2021

Run Linux Bash Commands in Background

If one thing can be annoying while working on remote terminals on daily basis, that would be waiting for a command to finish. Wasting time on waiting commands to finish is resolvable ...

In Linux, Sep 26, 2021

Remove Last N Characters of a String in Bash

As with most things in IT, there is always more then one way to skin a cat. In today’s blog post, we are gonna test out few ways on how we could remove last n characters of a string. ...

In Linux, Sep 24, 2021

Protect files from being deleted in Linux

I’m gonna start by saying we have all heard of these sudo rm -rf / horror stories on the Internet. There are a bunch of ways we could protect our servers from such accidents, which mi...

In Linux, Sep 22, 2021

How to search for a string in multiple files on Linux

These days there are a lot of code editors which can ease your life in terms of finding some particular string in multiple files or repo. The life will get complicated if you need to ...

In Linux, Sep 19, 2021

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like flu...

In Linux, Sep 18, 2021

How to list processes that are taking a lot of memory in Linux

There are situations where your web application or particular software installed on your machine takes a lot of time to load. The troubleshooting process may last long but however, yo...

In Linux, Sep 05, 2021

How to check if command succeeded in Linux

As a DevOps engineer, or any other Operation roles, we sometimes need to check if a linux command succeeded. There are many reasons, for example: our internet connection failed, a VPN...

In Linux, Aug 29, 2021

How to disable SELinux

You may face Nginx or Apache web server blocking issues even when your firewall is disabled. SELinux is a security engine that may block some of the calls or permissions on your serve...

In Linux, Aug 16, 2021

Github

GitHub hidden feature

There is a mind-blowing GitHub feature or if I can call it a “secret”, that I’ve just discovered and I need to share with you all.

In Github, Aug 19, 2021

MongoDB

How to install MongoDB on Rocky Linux 8

MongoDB has an attitude to store the data in BSON, which can be searched and indexed, with a way better performance. Installing MongoDB on rocky linux can additionally improve the sea...

In MongoDB, Aug 20, 2021

Jekyll

How to escape double curly braces in Jekyll

If you are using Jekyll for your blog site or writing some code documentation, you may face the issue with the double curly braces.Jekyll uses liquid tags, so if you are searching how...

In Jekyll, Aug 28, 2021

DDOS

How to check if your web application is under DDoS attack

Nowadays, most of the web applications are vulnerable and exposed on many different kinds of attacks. One of them is a DDoS attack. There are a lot of services on the internet that ar...

In DDOS, Sep 11, 2021

IaC

Declarative vs Imperative Infrastructure as Code

With the uprising of Terraform in the last couple of years, Infrastructure as Code (IaC) is a popular and hot topic in the DevOps world. Managing and deploying infrastructure is all w...

In IaC, Sep 16, 2021

Envoy

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Envoy, Sep 25, 2021

Ruby

How to install Ruby on Debian 11

Ruby as a programming language belongs to the group with a high demand along with the other popular programming languages. Nowadays his framework ruby on rails is highly used by devel...

In Ruby, Sep 27, 2021

RDP

Remmina can't remote into AWS EC2 Windows Machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some of the RDPs software. A few days ago I needed to access a Microsoft SQL...

In RDP, Oct 01, 2021

Cloud

5 Ways to Protect Root Account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

7 Ways to Save Money in the Cloud

Cost optimization is just one of the five pillars of Well-Architected Framework, which is identical across the top 3 public cloud provider players. Although, deploying a billing alarm...

In Cloud, Oct 02, 2021

CloudFormation

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a begginer because AWS is facing a lack of CloudFormation doc...

In CloudFormation, AWS, Oct 03, 2021

Drone

Add Drone CI Build Status to your Project

In some of the previous posts, I wrote about how to Send Drone CI build notifications with Slack.Here’s some quick steps on how to add the Drone CI build status to your favorite proje...

In Drone, Oct 08, 2021

Send Drone CI build notifications with Slack

The following post will be about sending Drone CI build notification to Slack. In case you didn’t know already, since there are dozen of CI/CD tools out there, Drone CI is an open sou...

In Drone, Oct 04, 2021

Nomad

How to install Nomad on Fedora based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Oct 27, 2021

How to install Nomad on RHEL based distro

As I mentioned in the previous topics I’m going to cover the Nomad installation on all popular Linux distros. So this tutorial will be aimed to show you how to install Nomad on RHEL b...

In Nomad, Oct 17, 2021

How to install Nomad on Debian based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Oct 15, 2021

How to install Nomad on AWS EC2 Amazon Linux 2 instance

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, the deployments, and managing the resour...

In AWS, Nomad, Oct 13, 2021

Terragrunt

How to install Terragrunt on Debian 11

If you need to simplify the Terraform structure you can achieve it through Terragrunt. The crux is that you only need to define the Terraform modules and Terragrunt will take care of ...

In Terragrunt, Oct 19, 2021

Nodejs

How to install Node JS on Debian 11

There are a few methods to install Node js on Debian 11. Using PPA Using NVM From the Debian official packagesI’m going to pick up the last one because it’s a quick and easy to ins...

In Nodejs, Oct 21, 2021

GraphQL

How to Setup GraphQL with Node.js on Debian based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Oct 23, 2021