Skip to content

Instantly share code, notes, and snippets.

@djbelieny
djbelieny / slackbot.js
Created August 18, 2017 15:59 — forked from sjoerdvisscher/slackbot.js
Create Slack bots with Meteor!
function slackpost(channel, name, text) {
HTTP.post("https://q42.slack.com/services/hooks/incoming-webhook", {"params":
{"token": "TODO: fill in token!",
"payload": JSON.stringify({
"channel": "#" + channel,
"username": name,
"text": text,
"icon_emoji": (name.indexOf("bot") > -1 ? ":ghost:" : "")
})
}}
@djbelieny
djbelieny / osx-for-hackers.sh
Created July 11, 2017 16:49 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx