Skip to content

Instantly share code, notes, and snippets.

View zonpantli's full-sized avatar

Miika Pihlaja zonpantli

View GitHub Profile
(ns gist.globhfs
(:import [cascading.tap GlobHfs]))
;; ### Bucket to Cluster
;;
;;; To get tuples back out of our directory structure on S3, we employ
;; Cascading's [GlobHFS] (http://goo.gl/1Vwdo) tap, along with an
;; interface tailored for datasets stored in the MODIS sinusoidal
;; projection. For details on the globbing syntax, see
;; [here](http://goo.gl/uIEzu).
require 'net/http'
require 'faraday'
require 'em-http-request'
require 'httpclient'
class HttpRunner
def self.run(client)
case client.to_i
@zonpantli
zonpantli / brew doctor
Created September 13, 2012 19:35
homebrew autoconf issue
mepihlaj@holobrook:~ $ brew doctor
Your system is raring to brew.
@zonpantli
zonpantli / linksim.rb
Last active December 18, 2015 02:49
Simulate various network links. Useful e.g. for mobile development on localhost.
# Usage
#
# To simulate lossy 3G on local connections to and from port 3004
# ruby linksim.rb up 3004 3g_lossy
#
# To clear ipfw rules
# ruby linksim down
conf = {
:"3g_lossy" => {