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 …
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 …
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 …
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 …
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:
Here is the script. Very simple yet very useful script.
Here is the youtbe video that will walk you through bash script.
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 …
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
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 …
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 …