A script
Hacker news thread: https://news.ycombinator.com/item?id=46092338
(via https://shaarli.zoemp.be/shaare/xtCl-Q)