Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bramp
bramp / ucode.py
Created October 13, 2011 23:46
Prints some simple information about ucode firmwares such as those used by Intel Wifi cards
#!/usr/bin/python
# Prints some simple information about ucode firmwares
# such as those used by Intel Wifi cards
#
# Version 1.0 Jan 2011
# by Andrew Brampton
#
# Example
# ./ucode.py /lib/firmware/*.ucode
#
@bramp
bramp / persec.py
Created October 10, 2011 13:08
A python script similar to GNU Watch, but works out the differences between each iteration and displays in units per second.
#!/usr/bin/env python
# Turns a series of numbers into counts per second
# by Andrew Brampton 2009
# TODO Make this smarter, so that it can parse numbers in blocks of text, and highlight the numbers it is changing.
# TODO Make sure the value is divided by the real interval
# TODO If the number printed is smaller than the previous number, then make sure to add extra padding to remove the old number
#
import subprocess
import sys
import time