You can find my code here https://gist.github.com/...
# general
m