Flaskex – Simple flask for quick prototypes

Open source project written in Python. We do not have to reinvent the wheel with features included: Encrypted user authorizaton Database initialization New user signup User login/logout User settings Modern user interface Bulma framework Limited custom css/js Easily customizable How to get it up in minutes git clone https://github.com/anfederico/Flaskex cd Flaskex pip install -r requirements.txt…

Guide to remove trailing slash from WordPress URL

Guide to remove trailing slash from WordPress URL Sometimes a very simple problem like  remove trailing slash from WordPress URL seems frustrating if you don’t know the solution to it. It’s the same with trailing slash problem in WordPress URL. To solve this trailing slash in WordPress URL problem, log in to your website admin…

Elasticsearch Cluster – Understanding How IT Works

Elasticsearch Cluster – How It Works Questions will be solved  How a node in cluster talks to others?  What happens when a node joins or leaves the cluster?  What happens when a node stops or has encountered a problem?  What is the role of master/client/data in cluster ?  What is memory requirement for each node…

How to Check System Last Reboot in Linux

In Linux/Unix sometimes you have to check system last reboot to see what really happened. How to Check System Last Reboot in Linux Check Last Reboot Mostly Linux/Unix systems provide the last command, which provides us the history of last logins and system reboots. Run last reboot command from the terminal, and you will get the…

How Kubernetes Works

How Kubernetes Works | Internal of Kubernetes #Kubernetes Overview: Kubernetes is a container management Platform Created by Google Written in Go/GoLang Also known as K8s   #Master Node Master is the control-plane or the brain of k8s cluster. A Master comprises of few components: api-server – Exposes REST API to talk to k8s cluster, consumes…

How to become DevOps Engineer – The 2018 DevOps RoadMap

DevOps is really hot at the moment , senior developer/sysadmin are working hard to become a DevOps engineer. I truly understand the benefit of DevOps, which is directly linked to improve software development (Dev) and deployment (Ops), and I can say that it’s not an easy job. Many of friends/colleges asked me how to become a…

Bash script to count the frequency of each word in a text file

Linux shell — text processing — Write a bash script to count the frequency of each word in a text file cat words.txt | tr [:space:] “\n” | sed ‘/^$/d’ | tr ‘[:upper:]’ ‘[:lower:]’|sort|uniq -c|sort -nr| awk ‘{print $2″ “$1}’ Explanation: cat: open content tr: replace all space with a newline ( all words will be as one line…

Ansible Ad-hoc Commands

Ansible ad-hoc commands will do a quick task but do not want to save that command for later. In below commands “-a” indicates the ad-hoc command. To see the list of nodes from the master ad-hoc commands. #ansible ubnt –m command –a ls/ To create a demo file in node2 from the server using ad-hoc…

Beginning Ansible in 5 Minutes

Let’s beginning ansible by understanding  the basics of Ansible in our tutorial, how to install and understand Inventories, Playbook, Roles, Tasks. A how-to to get started in 5 minutes. So let me show you how easy it is to get started with Ansible. Install Let’s assume you’ll use pip to get this done : $ sudo easy_install…

How to work with Ansible loop

Ansible loop provides a lot of methods to repeat certain tasks until a condition is met. A basic example which can be used to install a lot of Linux packages can be written like the below example. – name: Ansible Loop example apt: name: “{{ item }}” state: present with_items: – python3 – ca-certificates -…