Skip to content

Instantly share code, notes, and snippets.

View michaeltrobinson's full-sized avatar

Michael Robinson michaeltrobinson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am michaeltrobinson on github.
  • I am michaelrobinson (https://keybase.io/michaelrobinson) on keybase.
  • I have a public key ASDnWZmW-hwFZd-ELRcHWDIgwIv53W-QkFo2N18lN-VRMQo

To claim this, I am signing this object:

Slack Dark Theme Injection
Run this in any chat window:
/macgap.app.enabledevelopertools()
Right click anywhere and "Inspect Element".
Then run this in the javascript console:
var cssURI = 'https://gist.githubusercontent.com/michaeltrobinson/c02bc96926e14712e231e655d44c2989/raw/a9777af52c39bffec1d6652d0e2bc0362d12a407/slack-dark-theme.css';
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
h1, h2, h3, h4 { color: #e6e6e6; }
h1 a { color: #e6e6e6; }
h1 a:active, h1 a:hover, h1 a:link, h1 a:visited { color: #e6e6e6; }
.bordered { border: 1px solid #363636; }
.top_border { border-top: 1px solid #363636; }
@-moz-document domain(slack.com) { @keyframes highlight_fade { from { background-color: #373b41; }
to { background-color: #282a2e; } }
body { background: #282a2e; color: #e0e0e0; }
a { color: #ffffff; }
a:link, a:visited { color: #ffffff; }
a:hover, a:active, a:focus { color: #cc6666; }
hr { border-bottom: 1px solid #373b41; border-top: 1px solid #282a2e; }
h1, h2, h3, h4 { color: #e0e0e0; }
h1 a { color: #e0e0e0; }
h1 a:active, h1 a:hover, h1 a:link, h1 a:visited { color: #e0e0e0; }
@michaeltrobinson
michaeltrobinson / handler.js
Last active March 15, 2016 08:31 — forked from ThisIsMissEm/handler.js
The better way to execute Go on Amazon Lambda (see: http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/)
var child_process = require('child_process');
exports.handler = function(event, context) {
var proc = child_process.spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' });
proc.on('close', function(code){
if(code !== 0) {
return context.done(new Error("Process exited with non-zero status code"));
}