Displaying posts tagged: python

Intel ucode firmware version parser

No Comments
Out of fun I wrote a simple Python script to pull the version number out of Intel's ucode firmware, for example, the firmware used by my wifi driver. I needed this so I could see what version I was running versus a new version I had downloaded from Intel's Linux Wireless site. So here is the ...

UTF-8 Directory Listing

1 Comment
I had a need to create a directory listing with all the UTF-8 characters intact. This seems quite a chore on Windows, as doing anything via the shell seems to mangle the characters and show ???? instead of the real characters. For example, both the built in dir and Cygwin ls or find seemed affected. This ...

Persec python script

No Comments
A while ago I wrote a python script that does a similar job to GNU's watch command. You use it like so: ./persec.py [--interval=<n>] <command> so for example ./persec.py ifconfig Now in a similar way to watch, it executes the command every second, and highlights the differences between each execution. However, in addition to this it ...

Python close_fds issue

No Comments
So I spent the better part of my evening trying to track down a bug, which turns out to be a "feature" of python. I had just installed the GitPlugin for trac but I started to experience problems. When browsing the source inside trac it was taking over 30seconds to load the page and sometimes it ...

Follow HTTP Stream (with decompression)

No Comments
I was using Wireshark to capture an exchange of HTTP packets, however, some of the HTTP responses were using "content-encoding: gzip", which meant I couldn't view them decompressed in the "Follow TCP Stream". Wireshark does decompress them in Packet Details view, but it is hard to follow the full stream like this. The solution was to ...