Skip to content

Instantly share code, notes, and snippets.

View gobot.go
package main
import (
type PrivMsg struct {
christianchristensen / puppet-git-receiver-install
Created Sep 4, 2012 — forked from johnl/brightbox cloud example
puppet-git-receiver cloud-config install script
View puppet-git-receiver-install
- source: "ppa:brightbox/puppet"
- puppet-git-receiver
- rubygems
- cp -ar /home/ubuntu/.ssh /var/lib/puppet-git-receiver/
- chown -R puppet-git.puppet-git /var/lib/puppet-git-receiver/.ssh
- gem install librarian-puppet --no-ri --no-rdoc
christianchristensen / libpng.rb
Created Oct 5, 2011 — forked from tobiastom/libpng.rb
PHP Homebrew Formular
View libpng.rb
require 'formula'
class Libpng < Formula
url ''
homepage ''
md5 '3270bf2990c3174ae939388398de751e'
keg_only :provided_by_osx,
"TODO: Which software depends on this newer version of libpng?"
View select_jump_list.js
$('select.jump_list').change(function() {
if (!this.value) {
var url, url_len, last_char;
if (this.value.match('://')) { = this.value;
View random_iterator.rb
module Enumerable
# Iterate over this array randomly.
# From:
# And:
def randomized
return to_enum(:randomized) unless block_given?
def is_prime?(num)
i = 3