K4KFH's Blog

Hi, I'm Hampton. I love Linux, networking, programming, electronics, model trains, and anything else electronic! I love sharing my projects with others!

Transparent SSL Interception Bridge with mitmproxy

Hopefully you've heard of mitmproxy, a wonderful little Python tool for intercepting, decrypting, and dissecting SSL traffic. It also makes it very easy to decrypt SSL traffic for an entire network with Wireshark/TShark (see bottom of article). Image Credit: Nick Charlton It's a fabulous tool, but the setup instructions in the documentation are less than fabulous. If...
Read More

Calculating amperage (load) of a diesel locomotive

This is yet another ZephyrCab physics post. It's worth noting that this post's math is almost entirely theory, basically cobbled together by me for the sake of this software. So take it with a grain of salt. If you don't know, diesel locomotives have an ammeter in the cab to indicate load on the traction motors. This is...
Read More

The best Arduino Arc Welder

You've no doubt seen the various arc welder simulation circuits available for model train layouts. They're available from companies like Circuitron, and basically consist of a circuit with screw terminals with which you power a lamp. The circuit randomly flashes the lamp to give the effect of an arc welder. It's a fairly simple thing to do, especially...
Read More

Fix chattering Cherry MX switches in Xubuntu

Backstory I own one mechanical keyboard: a cheap ThermalTake eSports Poseidon something-or-other with blue backlighting and blue switches. For the price it's a pretty awesome keyboard, except for one fatal issue (and I might have favored the slightly-more-expensive Cooler Master keyboard had I known about this): most of the keys have a tendency to trigger twice. After extensive...
Read More

CasparCG HTML Producer Basics

I recently started working with my school system to deploy a standardized broadcast studio at several locations. Part of any broadcast studio is a playout system (to play recorded videos, intros, outros, etc), and a character generator to create text titles/animations. Sometimes these are two separate things, sometimes they're combined, but they're almost always very expensive, and...
Read More