January 2019

TIL Test a branch using dep with golang

I just needed to test out a branch fix for a go package and discovered it’s pretty easy to do if you’re using dep for dependency management by specifying a new source for the package.

May 2018

TIL Determine which HTTP port is being used by a Phoenix app

I was recently starting a Phoenix server with port 0 which tells the OS to find a free local port but wanted to know what port it had chosen. It turns out you can query the ranch config by the module name of your Phoenix Endpoint to get this information:

September 2017

TIL Tweet URLs at the end

I’m probably very late to the party but I discovered today that if you’re tweeting a link, twitter will display it differently if you put it at the end rather than the beginning or middle of the tweet. Here’s an example where I posted it at the beginning And here’s one at the end

TIL Docker can override UFW rules

If you’re using Ubuntu’s Uncomplicated Firewall (UFW) on your host and running services with Docker mapped ports, these services can bypass your UFW configuration.