Skip to content

Instantly share code, notes, and snippets.


Old versions of brew packages

Easy mode

Downgrading a brew package can sometimes be super easy with:

brew switch <package> <version>

Keybase proof

I hereby claim:

  • I am eirc on github.
  • I am eirc ( on keybase.
  • I have a public key ASA_MPAEC9UspX_eQC7xK9MudwyMpBjSAm5aMOtVoYYiMAo

To claim this, I am signing this object:

#!/usr/bin/env bash
set -euo pipefail
sudo aptitude install -y build-essential libtool automake autoconf libcurl4-gnutls-dev check libevent-dev libmemcached-dev memcached
git clone
cd libconflate
git checkout 2.1.1r
eirc / eclipses.rb
Created May 1, 2014 12:28
Calculate coverage percentage of solar eclipses by moons on their respective planets
View eclipses.rb
#!/usr/bin/env ruby
# Solar eclipses on the earth by the moon have the peculiar characteristic of the moon having about the same apparent
# size as the sun in the sky thus obscuring it exactly. Does this happen on other planets too? This script queries
# the Wolfram Alpha engine for this information for every planet and moon. Run it to find out!
# For a really scientific approach check out this paper:
# Instructions:
eirc / xbmc-webinterface-keyboard-shortcuts.js
Created March 10, 2013 17:02
XBMC webinterface keyboard shortcuts
View xbmc-webinterface-keyboard-shortcuts.js
$(document).keydown(function(e) {
switch(e.which) {
case 37:
case 38:
case 39:
eirc / sprites.html
Created December 10, 2012 14:36
Sprite example
View sprites.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<style type="text/css">
.google-sprite {
background: url( no-repeat;
display: inline-block;
vertical-align: middle;
View clean_cookies.rb
# Rack middleware that drops non properly encoded cookies that would hurt the ActionDispatch::Cookies middleware.
# This is actually a hotfix for issues
# *
# *
module CleanCookies
# Tests whether a string may be decoded as a form component
def decodable?(string)
eirc / .rvmrc
Created October 20, 2011 07:53 — forked from jimeh/decode.rb
Ruby-based Benchmark of MessagePack vs. JSON vs. Yajl vs. Protobuffers vs. MultiJson vs. Marshal vs. YAML vs. BSON
View .rvmrc
rvm --create ree@benchmarks