Learning

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 …

List all the tags for a image on docker hub

2020/03/16

Something that you may want to know sometimes and docker cli does not show by default is all the tags for the image on docker hub. Here is example to list all tags fro the centos image  curl …

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:  

i3 – show mapped hotkeys

2019/12/02

Here is a simple script that can show you the hotkeys bound in ~/.config/i3/config :  #!/bin/bash - #=============================================================================== # # FILE: …

Check your session type – wayland or X11

2019/07/15

With both wayland and X11 in mainstream, its pretty easy to forget if you are running in Wayland or in X11. To check this here are the commands:

copy /proc folder

2019/03/18

Other day, I was trying to copy the proc folder with following command: tar cvzf /tmp/proc.tgz /proc and I found out that all the files in tar were empty. Strange it may seem but lot of people are …

cool sed/grep magic to convert output to csv format

2019/03/11

I generallly keep doing this a lot, so thought will share with you. Lets assume we are capturing free ouput every min/hour/or whatever. The output looks like this: […] Time: Mon Jan 21 23:59:10 …

Directories with maximum number of files

2018/12/10

Lot of times, I want to find the directories with maximum number of files and so I wrote this quick function to do exactly the same  

xev – Check the X keyboard events

2018/11/19

xev man page […] xev – print contents of X events […] So other day I was checking why my play key was not working and wanted to check if it maps to one of the X default mappings for the …


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