Skip to content

Instantly share code, notes, and snippets.

View russellb's full-sized avatar

Russell Bryant russellb

View GitHub Profile
@russellb
russellb / ovn-pipeline.py
Last active August 29, 2015 14:24
A script to print out the OVN Pipeline in a sorted table
#!/usr/bin/python
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@russellb
russellb / ovn-nbctl-test.sh
Created March 26, 2015 23:41
sanity checking ovn-nbctl
#!/bin/bash
exec 2>/dev/null
ovn-nbctl lswitch-add sw0
ovn-nbctl lswitch-add sw1
ovn-nbctl lswitch-add sw2
ovn-nbctl lswitch-add sw2
echo "*** Should be 4 Logical Switches:"
ovn-nbctl lswitch-list
@russellb
russellb / diversity.py
Last active August 29, 2015 14:17
check project diversity using stackalytics
#!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

I hereby claim:

  • I am russellb on github.
  • I am russellbryant (https://keybase.io/russellbryant) on keybase.
  • I have a public key whose fingerprint is 2EA1 5068 05EE 0C83 2174 0A73 160F 5FB7 8B3D 4806

To claim this, I am signing this object:

{
@russellb
russellb / gist:5082605
Created March 4, 2013 14:36
nova reviews in the last 6 months
$ date
Mon Mar 4 09:33:37 EST 2013
$ python stats.py -d 182
Reviews for the last 182 days in nova
+------------------------+---------+
| Reviewer | Reviews |
+------------------------+---------+
| vishvananda | 1281 |
| mikalstill | 1258 |
@russellb
russellb / novanotifications.py
Created December 3, 2012 15:30
Qpid consumer of Nova notifications
import json
import sys
import qpid.messaging
def main(argv=None):
if argv is None:
argv = sys.argv
@russellb
russellb / notify_qpid_recv.py
Created February 8, 2012 23:33
Receive notifications from Glance via Qpid
import json
import sys
import qpid.messaging
def main(argv=None):
if argv is None:
argv = sys.argv
qmf::Agent
// To supplement getPackageCount() and getPackage(index)
// Note: getPackage(index) just returns a std::string
bool hasPackage(const std::string &package_name);
qmf::Schema
// To supplement getPropertyCount() and getPropertyCount(index)
SchemaProperty getProperty(const std::string &property_name);
// To supplement getMethodCount() and getMethod(index)