Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am harrigan on github.
  • I am martinharrigan (https://keybase.io/martinharrigan) on keybase.
  • I have a public key whose fingerprint is 53AD 5404 1078 48BD 498B FC98 8802 CF19 8D73 6EB5

To claim this, I am signing this object:

SELECT
sum(value)
FROM (
SELECT count(1) FROM myData WHERE appId = 0
UNION ALL
SELECT count(1) FROM myData WHERE appId = 9
) u;
SELECT count(1) FROM myData WHERE appId = 0 OR appId = 9;
SELECT count(1) FROM myData WHERE appId = 0;
SELECT count(1) FROM myData;
CREATE EXTERNAL TABLE myData (appId BIGINT, ts BIGINT)
STORED BY 'org.apache.hadoop.hive.dynamodb.DynamoDBStorageHandler' TBLPROPERTIES (
'dynamodb.table.name' = 'myData',
'dynamodb.column.mapping' = 'appId:appId,ts:ts',
'dynamodb.throughput.read.percent' = '1.0'
);
var _ = require('underscore');
var async = require('async');
var assert = require('assert');
var awssum = require('awssum');
var clone = require('clone');
var retry = require('retry');
var util = require('util');
var winston = require('winston');
var env = process.env;
@harrigan
harrigan / hack.sh
Created April 26, 2012 11:06 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2498821/hack.sh)"
#
# or run it in silent:
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<title>Renaming Tabs</title>
<script TYPE='text/javascript' src='jquery-1.4.4.min.js'></script>
<script TYPE='text/javascript' src='ui/jquery-ui-1.8.10.custom.js'></script>
<link rel='stylesheet' type='text/css' href='themes/smoothness/jquery.ui.all.css' />
<script type='text/javascript'>
$(function() {
#!/usr/bin/env ruby
require 'rubygems'
require 'blogger'
require 'mechanize'
require 'set'
STDOUT.sync = true
gmail_url = 'http://www.gmail.com'