Python
Hackernews In Your Inbox
2024/08/25
If you do not want to subscribe to any newsletter but still want to get some news delivered to you inbox then this post is for you. First you need to get a script that can pull the hacker-news …
Fix weird flux menu
2017/05/03
Some distro’s just add all the items under single menu and thus the menu itself becomes unusable because of the number of items in the submenu and this I did not like and hence ceated this simply …
scapy packet dump to packet
2017/04/10
First you need to have scapy installed. And if you don’t know about scapy, then […] Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide …
Get disk usage for all the containers with python script
2017/01/16
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.
supernova – manage multiple openstack environment
2016/08/01
supernova is an easy to use tool that helps manage multiple openstack environments. Details – […] To get started, start with installing supernova with dnf install supernova and after that you …
Python script to manage virtual machines with python API for libvirt.
2016/07/04
Most of times I use virt-manager to manage VMs but sometimes, I have to manage VMs on other hosts over ssh when connected over VPN or while I am working remotely. GUI like virt-manager thus becomes …
get the contents of whole site like some wiki or wikia
2014/02/24
For wikis and wikia, generally if you are trying to get some url mirror, then websucker.py is an excellent option. This script is in the python sources so, to get this tool, yumdownloader --source …
Check all vim colorschemes for minor issues
2013/10/10
Here is script that checks all the colorschemes in the current directory and corrects them if possible (Processing of the file is done with simple commands like sed, grep) Checks that the color_name …
ssmtp configuration and installation – raspberry pi.
2013/06/04
To get your email working on your raspberry pi, First thing that you should probably do is to set up outgoing emails from your RPi. The easiest way to do so is with ssmtp. Install ssmtp: sudo apt-get …
lightweight pdf viewer – zathura.
2013/01/28
Zathura is a lightweight viewer for pdf which works on plugins. Here is shor description : […] Zathura is a highly configurable and functional PDF viewer based on the Poppler rendering library …
vim mappings for multiple files.
2012/08/06
If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is …
gqlplus – sqlplus with readline (tab completion)
2012/08/03
Tab completion is something which is missing in the sqlplus and if you have lot of tables with long names or lot of columns then it is sufficiently difficult to type them 🙂 Here is a solution for this …