Some possibly useful Julia code: Getpwnam, NetworkInterfaces, hrbc

In pursuit of my own amusements, I whipped up some code I needed for a personal project:

This module implements getpwnam() for Julia. The Windows-specific portion is kludgy, but my project doesn’t depend on the values being precise, just that some approximation of the relevant data exist.

This module collects a list of network interfaces from the Linux/Unix, Mac OS, or Windows device, ignoring the loopback device. Once again, kludgy support for Mac OS and Windows, but it is sufficient for my personal project.

Functions to print byte counts in “human readable” form.

Feel free to modify for your own uses, just please attribute the original code to me. Enjoy.

1 Like