Skip to content

Instantly share code, notes, and snippets.

View marcosnils's full-sized avatar

Marcos Nils marcosnils

View GitHub Profile
@marcosnils
marcosnils / tmate.sh
Created February 1, 2015 19:30
Tmate slack
#!/bin/bash
set -e
SLACK_WEBHOOK_URL=
DEFAULT_EMOJI=:slack:
CHANNEL=${1:-#general}
AUTHOR="Some user"
tmate -S /tmp/tmate.sock new-session -d && tmate -S /tmp/tmate.sock wait tmate-ready
@marcosnils
marcosnils / RequestTest.js
Last active December 17, 2015 19:48
Request performance test.
var request = require("request"),
http = require("http");
var time;
var plainBody = {"resource":"/test/1111111111111","user_id":15667236,"topic":"test","attempts":1,"sent":"2013-05-27T19:15:17.043Z","received":"2013-05-27T19:15:15.000Z"}
var body = JSON.stringify(plainBody);