Skip to content

Instantly share code, notes, and snippets.

View lgomez's full-sized avatar

Luis G. Gómez lgomez

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lgomez on github.
  • I am lgomez (https://keybase.io/lgomez) on keybase.
  • I have a public key whose fingerprint is 5467 DA26 2143 B6D5 9D9F 0A7A 9570 75DB 8FA8 3A28

To claim this, I am signing this object:

@lgomez
lgomez / webhook.js
Created May 12, 2015 00:52
Simple node github webhook
#!/usr/bin/env node
var http = require('http');
var util = require('util');
var sys = require('sys');
var server = http.createServer(function (request, response) {
console.log(util.inspect(request.url));
if (request.url === "/path/to/where/you/want/your/webhook/to/be") {
response.writeHead(200, {'Content-Type': 'text/html'});
response.end("ok");