Various programs
Here you can find some simple tools that I wrote either for fun or because I wanted to learn how use some specific techniques. Or tools that simple that they don't deserve their own category ;-)
- netblock.py
Simple tool to compute an IPv4 netblock covering all IP addresses given on the command line.
For example:
~$ netblock 1.2.3.4 1.2.3.255 1.2.3.0/24 ~$ netblock 192.168.131.12 192.168.137.1 192.168.144.9 192.168.128.0/19
Download here: netblock.py
- dlopen() demo
- A simple program demonstrating the use of per-request loadable libraries. Similar concept can be used for allowing different skins of your application.
- getaddrinfo() and gethostbyname() demo
- Two examples how to look up domain names and addresses.
- IPv6 and IPv4: getaddrinfo.c (Colorized)
- IPv4 only: gethostbyname.c (Colorized)
Below are programs that I didn't write but found them useful (although I often don't know who the author is).
- Compute CPU frequency
- This program computes the frequency of a CPU by reading a TSC register on
x86 or amd64 CPU.
- See the source: compute_MHZ.c (Colorized)
- DMI decode
- Read, decode and print the BIOS' Desktop management interface
table.
- Homepage
- Download latest from http://savannah.nongnu.org/download/dmidecode
- Or as a fallback take from here