Skip to content

Instantly share code, notes, and snippets.

View stennie's full-sized avatar
G'day!

Stennie Steneker stennie

G'day!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stennie on github.
  • I am stennie (https://keybase.io/stennie) on keybase.
  • I have a public key whose fingerprint is 87B8 DB6A D31F 8211 D5CC ED03 FD09 3703 2B4A 6E16

To claim this, I am signing this object:

@stennie
stennie / mongo-hadoop-core_1.0.3-1.1.0-SNAPSHOT.jar.txt
Created August 16, 2012 02:34
mongo-hadoop-core_1.0.3-1.1.0-SNAPSHOT.jar contents
Archive: mongo-hadoop/core/target/mongo-hadoop-core_1.0.3-1.1.0-SNAPSHOT.jar
Length Date Time Name
--------- ---------- ----- ----
295 08-16-2012 12:33 META-INF/MANIFEST.MF
0 08-16-2012 12:33 com/
0 08-16-2012 12:33 com/mongodb/
0 08-16-2012 12:33 com/mongodb/hadoop/
0 08-16-2012 12:33 com/mongodb/hadoop/input/
0 08-16-2012 12:33 com/mongodb/hadoop/io/
@stennie
stennie / test_slice.pl
Created August 2, 2012 13:31
Example of using $slice and fields() in the MongoDB Perl driver 0.45
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper qw/Dumper/;
use MongoDB;
use MongoDB::OID;
my $connection = MongoDB::Connection->new;
@stennie
stennie / gist:3179786
Created July 26, 2012 01:45
Enable default pretty printing in MongoDB shell by default .. equivalent of .find().pretty()
// Add to .mongorc.js
DBQuery.prototype._prettyShell = true;
@stennie
stennie / .mongorc.js
Last active October 7, 2015 09:37
Stennie's two-line MongoDB prompt
// Stennie's two-line MongoDB prompt:
//
// [##] hh:mm:ss [myState]:[db]@[host]>
// MongoDB [serverversion]>
//
var cmdCount = 0;
var states = ["STARTUP", "PRIMARY", "SECONDARY", "RECOVERING", "FATAL", "STARTUP2", "UNKNOWN", "ARBITER", "DOWN", "ROLLBACK"];
prompt = function() {