Learning
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 …
using cat with grep – why?
2020/01/06
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 …
Get to your ebooks quickly
2018/11/12
We are using “rofi” here to show the menu. So, lets first install that cat <<EOF >/etc/yum.repos.d/_copr_yaroslav-i3desktop.repo [yaroslav-i3desktop] name=Copr repo for i3desktop owned by …
Monitor progress of coreutils commad like mv, cp etc
2018/04/02
Monitor progress of coreutils commad like mv, cp etc You can use command called “progress”. Other option is “pv” but that is little complicated so here is simpler option. […] Progress – A …
ssh – remove offending key.
2016/04/04
Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and …