Learning

inotify -watch for file to change

2014/01/28

Here is a simple command for you. It uses inotify tools. So first you need to install : sudo yum install inotify-tools and then you can try something like this: while true; do inotifywait -r -e modify …

cgroups – use to control your cpu and memory

2014/01/06

cgroups is a kernel feature and with userspace utilities, we can use the feature to control the cpu and memory for per process. So, lets first install the required tools. sudo yum install …

Fix typescript files generated with script command

2013/12/18

Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These …

LibreOffice – Formulae Auditing

2013/05/30

If you have a excel sheet with lot of formula’s and you are trying to audit them, then a simple solution is to press “ctrl+`” (i.e. control key with back tick). This will put the excel sheet in …

cksum – compare for multiple files.

2013/04/30

If you have to compare cksum for couple of files, the you know how cumbersome it is. So, I wrote a simple script, wherein you can create a file called cksums in the current directory and copy paste …

dnsmasq not starting from NetworkManager with SELinux enabled.

2013/03/16

 Some time back I posted on dnsmasq starting from Network Manager and how to setup dnsmasq. Now, couple of days back , I setup dnsmasq in NetworkManager but was astonished to see that there was no …

ssh reverse tunning..

2013/02/14

If you want to access some local resources like the release website from the remote server when you are connecting to the remoter server using ssh over VPN, then possibly reverse ssh tunnelling is the …

dnsmasq – use with Network Manager.

2013/01/28

 Well if you have not heard about dnsmasq: […] Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. …

Music players on Linux – the poor mans random song player.

2012/07/20

If you have more applications running on your system then your system can handle them then you know what I mean when I say that the Music Players take a lot of CPU. Otherwise harmless, but when you …

Array of all possible colors in bash script

2012/05/07

Sometime back, we had looked at using colors in bash script and here is a way to create a array of all the colors. #!/bin/bash - …

colors in bash scripts

2012/04/30

I have been trying to understand the color codes for bash for a pretty long time, but somehow never got time to understand this clearly. So this time around when I was writing a script to analyze some …

Thumbnail

Your own local search engine.

2012/04/09

There are times when you would want to have a local search engine capable of indexing even pdf and doc files. So here is a solution. You can use “Omega” and here are the instructions. download omega …


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