bash

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 …

scripting – performance improvement with file open

2020/04/20

Sometimes just one line of code can make all the difference. I will show you with example.  Here is script with 2 functions. Both are writing some lines of text to a file. First function, “a” I have …

Get the git url of current repo in clipboard

2019/12/30

Lot of times, I just want to copy the git url to clipboard. This is so common in my flow of work that I created an alias for it. Here it is:  

Script to try various themes from kitty terminal

2019/12/16

Here is the script. Very simple yet very useful script.

scan your network with bash IP scan script

2019/10/10

Here is the youtbe video that will walk you through bash script.  

ssh trick – ssh to remote host with bastion host

2019/09/16

Lot of times, you have to ssh to a server with bastion host. If you dont know what is bastion host then see this:  Now, in such cases, either you add an entry in “~/.ssh/config” to route the ssh …

View xml files like a pro

2019/08/05

Viewing XML files can be daunting with tracking mentally where the tag starts and where it ends. So, I ended up with the following alias to help me view xml files

Add files to dropbox with single curl command

2019/07/08

I have been thinking of posting this for sometime now. This is very useful, when you are working on a different Linux box and want to upload a file to dropbox.  So, before you run this command, you …

Split pcap to multiple files based on number of packets

2019/06/03

Here is a script that can use tshark to split a large pcap to multiple small pcaps  inpcap="test.pcap" max=$(tshark -r $inpcap -n -T fields -e frame.number|tail -1) # This is the number of packets in …


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