Skip to content

Instantly share code, notes, and snippets.

@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'
@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 + ")()";
});
@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"
@sr
sr / Gemfile
Created December 19, 2011 13:55
Janky on Heroku
source "http://rubygems.org"
gem "janky", "~>0.9"
gem "pg"
gem "thin"
@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: ")
@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.

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

@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'