A collection of Splunk recipes for Heroku logs. Instructions for setting up Splunk Storm with Heroku can be found here. For the vast majority of these recipes you'll need to have enabled the Heroku labs feature, log-runtime-metrics, for your application.
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
require 'formula' | |
class Screen <Formula | |
homepage 'http://www.gnu.org/software/screen/' | |
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
md5 '8506fd205028a96c741e4037de6e3c42' | |
# brew install --HEAD to get the latests, includes vertical split, mapped | |
# to C-a | | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |
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
// A crazy dotjs hack | |
// https://twitter.com/johnbender/status/131123843812179968 | |
// You need to generate an OAuth token: http://developer.github.com/v3/oauth/#oauth-authorizations-api | |
var functionToLocation = function (fn) { | |
$(function () { | |
var js = fn.toString().replace(/\n/g, " "); | |
console.log(js); | |
window.location = "javascript: (" + js + ")()"; | |
}); |
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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
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
source "http://rubygems.org" | |
gem "janky", "~>0.9" | |
gem "pg" | |
gem "thin" |
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/python | |
# -*- coding: UTF-8 -*- | |
import facebook | |
import urllib2 | |
import codecs | |
print "You need API token: get one here: https://developers.facebook.com/tools/explorer" | |
USER_ACCESS_TOKEN= raw_input("Your API key: ") |
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
class TarSnap < FPM::Cookery::Recipe | |
source 'https://www.tarsnap.com/download/tarsnap-autoconf-1.0.36.1.tgz' | |
homepage 'https://www.tarsnap.com/' | |
# Verify the signed SHA256 hash file from | |
# https://www.tarsnap.com/download/tarsnap-sigs-1.0.36.1.asc | |
sha256 'a2909e01e2f983179d63ef2094c42102c92c716032864e66ef25ae341ea28690' | |
name 'tarsnap' | |
version '1.0.36.1' | |
license 'Tarsnap License' | |
section 'tools' |
OlderNewer