Skip to content

Instantly share code, notes, and snippets.

@dawud
dawud / recipe.rb
Created November 23, 2015 22:18
Tarsnap fpm-cookery recipe
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'

Pedro's Amazing Guide To Rooftop Bars

Drinking with a perspective

Very few people respect the art of rooftop drinking these days.

Notably, rooftop bar customers often believe that wearing a suit or a fancy dress conveys respect.

Niclekback wears suits

@chuckg
chuckg / SPLUNK_RECIPES.md
Last active May 18, 2020 17:37
Splunk Storm recipes for Heroku logs.

Splunk Recipes for Heroku

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.

@Visgean
Visgean / backup.py
Created July 16, 2012 22:27
Backup all messages on facebook
#! /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: ")
@sr
sr / Gemfile
Created December 19, 2011 13:55
Janky on Heroku
source "http://rubygems.org"
gem "janky", "~>0.9"
gem "pg"
gem "thin"
@vmihailenco
vmihailenco / proxy.go
Created November 20, 2011 15:22
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@halorgium
halorgium / github.com.js
Created November 1, 2011 16:10
Load the ISSUES?.md file content as the default issue body
// 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 + ")()";
});
@mjwall
mjwall / screen.rb
Created October 14, 2011 14:05
Homebrew screen install with 256 colors and vertical splits
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'
build:
@echo "Combining files ..."
@cat \
js/dep/jquery.easing.js \
js/dep/jquery.jsonp.js \
js/dep/json2.js \
js/dep/toolbox.expose.js \
js/lib/jquery.transloadit2.js > build/jquery.transloadit2.js
@echo "Compiling with Closure REST API ..."
@curl \
2 Pac - Tradin War Stories
2 Pac - Holla At Me
50 Cent - Patiently Waiting
50 Cent - Heat
50 Cent - Back Down
50 Cent - Da Repercussions
50 Cent - Power Of The Dollar
G-Unit - Straight Outta Southside
G-Unit - Beg For Mercy
G-Unit - Gangsta Shit