Skip to content

Instantly share code, notes, and snippets.

View bdcravens's full-sized avatar

Billy Cravens bdcravens

View GitHub Profile
@bdcravens
bdcravens / app_controllers_slack_controller.rb
Created November 27, 2015 19:55 — forked from patio11/app_controllers_slack_controller.rb
Implementing a /healthcheck endpoint in Slack to read out consul status in a human-readable fashion
class SlackController < ApplicationController
skip_before_action :verify_authenticity_token
@@slack_security_tokens =
["copy-paste-the-token-you-get-from-Slack-when-configuring-the-integration-here"]
before_filter :bounce_access_not_from_slack
def healthcheck
services = SystemStatus.list_services
@bdcravens
bdcravens / hack.sh
Created March 31, 2012 13:43 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#