How to Proxy Segment Tracking Through Charles

Recently I was working on a project using Segment tracking via their super helpful analytics library for Python, but was having trouble testing locally since all the tracking requests are sent encrypted via SSL. I wanted to view the contents of these requests via Charles Proxy, and to top it off I was running all this through Docker.  Turns out it’s a bit of a challenge!  Here’s how I configured things to do it.
Continue reading “How to Proxy Segment Tracking Through Charles”

Controlling Pi-Hole with Physical Buttons

Controlling Pi-Hole with Physical Buttons

I recently set up Pi-Hole, the awesome network-wide ad blocker that runs on a Raspberry Pi.  But, I wanted an easy way to enable/disable it using physical buttons attached to the device itself.  No problem- thanks to a Pimoroni Button Shim and some Python scripting, I can now control my Pi-Hole with the press of a button!

Read on for full instructions and the script I used.

Continue reading “Controlling Pi-Hole with Physical Buttons”