USERNAME=user:pass
OWNER=someguy
REPO=thing
curl -u $USERNAME -H "Accept: application/json" ${DEBUG} https://api.github.com/repos/${OWNER}/${REPO}/hooks -d '{"config": {
"nick": "ggl_bot",
"port": "6667",
"server": "chat.freenode.net",
"room": "#SherSec"
},
"name": "irc",
"events": [
"push"
]
}'
curl -u $USERNAME -H "Accept: application/json" ${DEBUG} https://api.github.com/repos/${OWNER}/${REPO}/hooks
curl -X DELETE -u $USERNAME -H "Accept: application/json" ${DEBUG} https://api.github.com/repos/${OWNER}/${REPO}/hooks/123123