Category Archives: Code Scraps

Config files and git source control

Where I work we have a lot of people editing configuration files for various different things, DNS, Nagios etc. So to stop conflicts and also to ensure that all changes are tracked and we can reverse any changes done we …

Read more »

Printing time deltas in human readable format for python

From time to time I want to be able to log time deltas in a way that is easy for me to read. I normally write my own code to do this. But the other day I figured there must …

Read more »

Are you my Hypervisor?

I’m currently writing a script to try and detect if I’m in a guest on vmware. I was looking around and found some complicated C programs to probe memory to detect it. Then I was talking to one of my …

Read more »

Getting debug output without the code bloat in release

Following on from my last post we now have a “Debug” build scheme so we should put it to good use. One of the things I do when I want to visually see whats going on in my apps and I …

Read more »