This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following recipe works with upstream rails proxy for custom 404s and 500s. | |
# Errors are usually handled via rails except if proxy is really down, in which case | |
# nginx needs a bit more configration. | |
server { | |
# ... | |
location / { | |
error_page 404 = @rails; # let rails show a page with suggestions | |
try_files maintenance.html @rails; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Before running this script, open Disk Utility. | |
# | |
# Partition USB Stick: | |
# * 1 Partition | |
# * Options -> GUID Partition Table | |
# * Mac OS Extended (Journaled) | |
# * Name: Foobar | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# Log all the things to ElasticSearch then lets you ask hubot what you missed | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# ELASTICSEARCH_HOSTNAME - E.G. elasticsearch.example.com:9200, where to send the put requests | |
# ELASTICSEARCH_USERNAME - OPTIONAL basic auth username | |
# ELASTICSEARCH_PASSWORD - OPTIONAL basic auth password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'webrick' | |
#require 'webrick/https' | |
#require 'openssl' | |
require 'resolv' | |
require 'json' |