Skip to content

Instantly share code, notes, and snippets.

Avatar

Russell Bryant russellb

View GitHub Profile
@russellb
russellb / ovn-pipeline.py
Last active Aug 29, 2015
A script to print out the OVN Pipeline in a sorted table
View ovn-pipeline.py
#!/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 Mar 26, 2015
sanity checking ovn-nbctl
View ovn-nbctl-test.sh
#!/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 Aug 29, 2015
check project diversity using stackalytics
View diversity.py
#!/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
View keybase.md

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 Mar 4, 2013
nova reviews in the last 6 months
View gist:5082605
$ 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 Dec 3, 2012
Qpid consumer of Nova notifications
View novanotifications.py
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 Feb 8, 2012
Receive notifications from Glance via Qpid
View notify_qpid_recv.py
import json
import sys
import qpid.messaging
def main(argv=None):
if argv is None:
argv = sys.argv
View gist:1154096
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)