bash

Hackernews In Your Inbox

2024/08/25

If you do not want to subscribe to any newsletter but still want to get some news delivered to you inbox then this post is for you. First you need to get a script that can pull the hacker-news …

Short url to full url

2024/06/19

Most of the Social sites will shorten the links. There are a lot of ways to check the url before you go to the url and get phished :) For example, for bitly you can just add a ‘+’ at the …

Bash script performance issue and remediation

2024/06/17

I was looking at writing some output to files. The output did not vary much but the number of lines was huge. It was long time back so I dont remember the context of the requirement but I needed to …

mussh-run-commands-on-multiple-hosts

2022/03/06

mussh allows you to run command/commands on multiple hosts at the same time. If you have farm of server setup with passwordless ssh or with same password (which is generally the case), then using …

virt-install with cloud-init

2022/02/09

If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for cloud-config here. It is used for configuring …

Stay safe from phising

2022/02/05

Generally when you get a phising mail, the biggest challenge is finding if the site is genuine or not. And URL shortening services do not make it any easy. Earlier I had posted about using curl to …

Curl to exapnd short url

2022/01/09

Many times I receive short urls in mail and other places like chats and messages. I first like to see the destination before I click on the url. I was looking for some way to do this in bash. I …

Sleep infinitely in bash

2021/12/19

I am sure that you would have got a lot of instances where you have wanted to sleep for infinity and ended up doing this […] 1 2 3 4 while [[ 1 ]] do sleep 3600 done or some other such similar …

Ignore case when completing file names in bash

2021/12/11

Sometimes you don’t want to have the bash completion work with case completion. There could be several reasons like one I dont like is the default xdg folders starting with capital letters. So, …

Warn when battery is low

2020/08/30

I am very lazy to look at battery status and want to be warned when the battery is low. This means that even if I am away from the laptop, I can be warned that laptop is about to poweroff due to …

Some good find alias.

2020/08/23

Here are some interesting alias’s that you may want to add to your bashrc file or where-ever else you add your aliase’s. Very useful if you use find commonly. There are four aliases …

Books menu with bash

2020/08/16

If you have a folder full of ebooks in various formats and not necessarily one sigle format and you want to have a quick menu to browse though your collection without requiring to open a File Manager …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it