Profile cover photo
Profile photo
Amit Agarwal
121 followers -
Http://blog.amit-agarwal.co.in
Http://blog.amit-agarwal.co.in

121 followers
About
Amit's interests
View all
Amit's posts

Post has shared content
Lot of times I find myself of VM that does not correctly resize the screen display and that is literally nuisance. So, here is quick and dirty fix for this. First you need to find out information about your display with following command: xrandr -q And…

Post has shared content
How many times you have felt that there was some simple way to convert bash ansi escape sequences ( colors as well in terminal ) to html equivalent so that you can send the same as html report in email. Here is simple solution. One way is to use ccze if…

Post has shared content
If you are using pmap or using strace and want to covert kernel address to function name then you can use the following technique.   First you need to install elfutils, if not installed. dnf install elfutils and after this you can use the following…

Post has shared content

Post has shared content
Sometimes, there are just too many messages in journalctl output and it becomes a mystery game to search for the messages you are looking for. But luckily you do not need to use grep to find the right message. Here is example of what I had to do when I…

Post has shared content
I came across this useful and interesting project so sharing with all of you: seq2vid

Post has shared content

Post has shared content
With my increasing love for python, here is my attempt to get the disk usage of all the containers on some host. Well, since the requirements vary for everyone, so this script is far from complete. import docker import json # We will connect to…

Post has shared content
So, I have a few dockers. Every now and then I want to run some command on all of them. Doing ‘docker exec’ is tiresome. I found this neat solution with ansible that I thought I should share with you. To get started, you need to have the “docker.py”…

Post has shared content
Just in case, you are looking for backing up your trello account boards, you can use the following bash script to do so:   #!/bin/bash - #=============================================================================== # # FILE: backup-trello.sh # # USAGE:…
Wait while more posts are being loaded