How do I create a hook?

How to create a hook.conf correctly, and link it to your starcraft project