The entire source:

https://gist.github.com/stockholmux/0a7d6f8dd1bdf83ca1e5a695ab07043b

It won't work for any cat5 cable but the one I have but maybe you can modify the dimensions as needed.