Skip to content

Instantly share code, notes, and snippets.

View jtolio's full-sized avatar
🙃

JT Olio jtolio

🙃
View GitHub Profile
@jtolio
jtolio / gist:1934071
Created February 28, 2012 18:17
gerrit events in irc
#!/bin/bash
function event_stream {
ssh -p 29418 gerrit@localhost gerrit stream-events
}
function get_json {
python -c "import sys, json; print json.dumps(json.loads(sys.stdin.read())[sys.argv[1]])" $1
}
@jtolio
jtolio / trivial_rebase.py
Created February 24, 2012 03:07
trivial_rebase.py script for gerrit 2.2.2.1
#!/usr/bin/env python2.6
# Copyright (c) 2010, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above
Stevey's Google Platforms Rant (now-removed Google-internal Google+ post)
(possibly better formatted at http://steverant.pen.io/)
I was at Amazon for about six and a half years, and now I've been at
Google for that long. One thing that struck me immediately about the
two companies -- an impression that has been reinforced almost daily --
is that Amazon does everything wrong, and Google does everything right.
Sure, it's a sweeping generalization, but a surprisingly accurate one.
It's pretty crazy. There are probably a hundred or even two hundred
different ways you can compare the two companies, and Google is superior
@jtolio
jtolio / boost spirit test
Created February 28, 2011 17:26
these tests don't pass
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
#include <boost/shared_ptr.hpp>
#include <sstream>
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
namespace phx = boost::phoenix;
template<typename Iterator>