Skip to content

Instantly share code, notes, and snippets.

View jmhodges's full-sized avatar
🐶
return of the

Jeff Hodges jmhodges

🐶
return of the
View GitHub Profile
diff --git a/git-jira-attacher.py b/git-jira-attacher.py
index 6ad4dda..1186edb 100755
--- a/git-jira-attacher.py
+++ b/git-jira-attacher.py
@@ -78,8 +78,7 @@ def get_soap_client(base_url, username = None):
# Use urllib2 here instead of just passing the url directly,
# because the internal urllib call seems to break with SSL+chunked.
import urllib2
- handle = urllib2.urlopen(base_url + "/rpc/soap/jirasoapservice-v2?wsdl")
- client = Client(handle)
require 'benchmark'
require 'rubygems'
require 'gruff'
require 'httparty'
require 'json'
class LoggedRequest
attr_reader :response_time, :path, :status
def initialize(request)
jmh @ shinygecko: ~/projects/cassandra_client (master)
→ irb -r lib/cassandra
irb(main):001:0> c = Cassandra.new('Twitter'); c.get(:Tweets, 'first')
=> #<OrderedHash {"text"=>"omg no wai"}>
....
jmh @ shinygecko: ~/projects/hadoop-0.20.0
→ ./bin/hadoop jar \
~/projects/build_cassandra/cassandra/build/apache-cassandra-incubating-examples-0.4.0-dev.jar \
6:50:01 PM Jeff Hodges: btw, if the bug takes hold, see if you can't get php5 with phuby to work as
a portfile because i will be goddamned if i can manage the patience after that first night of
trying to make it happen
6:50:21 PM John Barnette: well
6:50:23 PM John Barnette: I would
6:50:35 PM Jeff Hodges: hehe
6:50:36 PM John Barnette: but I'm ethically bound not to touch phuby stuff
6:50:41 PM John Barnette: because I want to KILL IT WITH FIRE
6:50:44 PM Jeff Hodges: ahahah
6:50:53 PM John Barnette: aaron only did it because I got so mad every time he talked about it
// This is what boots Cassandra for the hadoop stuff
private void startKeyspace() throws IOException
{
CalloutManager.instance().onStart();
LogUtil.init();
if (keyspace == null) {
throw new RuntimeException("you forgot to set the keyspace with KeyspaceInputFormat.setKeyspace()");
}
diff --git a/Makefile.am b/Makefile.am
index 38accd4..d6a3196 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,10 +10,15 @@ AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = pez
-pez_SOURCES = pez.c pezmain.c pez.h pezdef.h
+pez_SOURCES = pez.c pezmain.c
lib_LTLIBRARIES = libmurmurhash.la
libmurmurhash_la_SOURCES = src/murmurhash.cc
/**
* Calculates the splits that will serve as input for the map tasks.
* <ul>
* Splits are created in number equal to the smallest between numSplits and
* the number of {@link HRegion}s in the table. If the number of splits is
* smaller than the number of {@link HRegion}s then splits are spanned across
* multiple {@link HRegion}s and are grouped the most evenly possible. In the
* case splits are uneven the bigger splits are placed first in the
* {@link InputSplit} array.
*
irb(main):001:0> `ruby --version`
=> "jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-05-13 rev 6586) [x86_64-java]\n"
irb(main):002:0> `cruby --version`
=> "jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-05-13 rev 6586) [x86_64-java]\n"
irb(main):003:0> `druby --version`
=> "jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-05-13 rev 6586) [x86_64-java]\n"
irb(main):004:0> `eruby --version`
=> "jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-05-13 rev 6586) [x86_64-java]\n"
irb(main):005:0> `which ruby`
=> "/opt/local/bin/ruby\n"
require 'irb/ext/save-history'
module IRB
module HistorySavingAbility
def HistorySavingAbility.create_finalizer
at_exit do
if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0
if hf = IRB.conf[:HISTORY_FILE]
file = File.expand_path(hf)
end
file = IRB.rc_file("_history") unless file