Parsing JSON and YAML Files with jq and yq in Shell Scripts

jq only reads JSON. Run it on a YAML file and it fails: jq ‘.name’ data.yaml prints jq: parse error: Invalid numeric literal at line 1, column 5 (tested with jq 1.8.2). To query YAML in a shell script, use… Read moreParsing JSON and YAML Files with jq and yq in Shell Scripts

Comprehensive Guide to Fluentd for Log Management

Fluentd is an open-source data collector that reads logs from many sources, processes them and sends them on to storage such as Elasticsearch, Amazon S3 or syslog. The first version of this guide listed what Fluentd can do. This version… Read moreComprehensive Guide to Fluentd for Log Management

Understanding Kubernetes Sidecars: What They Are and How They Work

Kubernetes has revolutionized the way we deploy and manage containerized applications. One of its powerful features is the sidecar pattern, which enhances the functionality of your main application container without modifying it. In this post, we’ll explore what Kubernetes sidecars… Read moreUnderstanding Kubernetes Sidecars: What They Are and How They Work

Streamline Your Python Deployments: Azure Functions + Azure DevOps

Deploying applications to the cloud has never been easier, thanks to platforms like Azure and tools like Azure DevOps. In this guide, I’ll walk you through the process of setting up a pipeline to deploy a Python application to Azure… Read moreStreamline Your Python Deployments: Azure Functions + Azure DevOps

Terraform: Mastering Strings and Templates

In Terraform, working effectively with strings and templates is crucial for creating dynamic and flexible infrastructure as code. This blog post will explore various string manipulation techniques and the power of templates in Terraform, providing practical examples to enhance your… Read moreTerraform: Mastering Strings and Templates

Terraform: When to Use Locals vs Variables

In Terraform, both locals and variables are essential tools for creating flexible and maintainable Infrastructure as Code (IaC) configurations. While they may seem similar at first glance, they serve different purposes and are best used in different scenarios. This blog… Read moreTerraform: When to Use Locals vs Variables

Git Cheat Sheet: From Basics to Advanced

Introduction Git is a version control system that helps you track changes in your projects. This cheat sheet covers essential commands for beginners and more advanced users. Want a printable version? Get the free Git + GitHub Actions cheat sheet… Read moreGit Cheat Sheet: From Basics to Advanced

Access Control List (ACL): A Guide for File Permissions

Understanding file permissions is central to system administration and security. An Access Control List (ACL) gives you a more fine-grained model than the traditional owner, group and others permissions. This guide shows how to set specific user permissions with ACLs…. Read moreAccess Control List (ACL): A Guide for File Permissions

Linux Netcat Command Examples

Netcat (nc) is a versatile networking utility for reading from and writing to network connections using TCP or UDP. Below are some practical examples showcasing its capabilities. 1. Test if a Remote TCP Port is Open To check if a… Read moreLinux Netcat Command Examples