I created a cookbook repo to store some recipes, I had (I have plenty sprayed over my repos!).
Yours is the first one: [https://github.com/status-im/nim-cookbook/blob/264cc90d/macros_register_hooks.nim](https://github.com/status-im/nim-cookbook/blob/264cc90d/macros_register_hooks.nim)