Skip to content

Instantly share code, notes, and snippets.

View rconradharris's full-sized avatar

Rick Harris rconradharris

  • Planet
  • Austin, TX
View GitHub Profile
{
"foo": 42
}
set rtp+=/usr/local/go/misc/vim
filetype plugin indent on
""" Turn off vi-compat mode
set nocompatible
""" Turn on coloring
syntax on
@rconradharris
rconradharris / gist:f40f7789f41d3dba9989
Created August 7, 2014 17:15
Rackspace Flavor-List using Novaclient
import novaclient.auth_plugin
from novaclient.v1_1 import client
novaclient.auth_plugin.discover_auth_systems()
auth_plugin = novaclient.auth_plugin.load_plugin(AUTH_SYSTEM)
c = client.Client(USER,
PASS,
TENANT,
AUTH_URL,
auth_plugin=auth_plugin,
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup File "/opt/rackstack/822.0/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 1101, in init_host
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup self._init_instance(context, instance)
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup File "/opt/rackstack/822.0/nova/lib/python2.7/site-packages/nova/compute/manager.py", line 1006, in _init_instance
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup context, instance, net_info, block_device_info)
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup File "/opt/rackstack/822.0/nova/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2158, in resume_state_on_host_boot
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup self._hard_reboot(context, instance, network_info, block_device_info)
2014-07-07 21:18:54.984 30210 TRACE nova.openstack.common.threadgroup Fi
### Keybase proof
I hereby claim:
* I am rconradharris on github.
* I am rconradharris (https://keybase.io/rconradharris) on keybase.
* I have a public key whose fingerprint is EA6B F9C5 D0C2 C9C9 929C C92F 319D 54D4 6170 8C68
To claim this, I am signing this object:
@rconradharris
rconradharris / git ls
Created October 18, 2013 15:02
Useful alias for seeing recent branches
[alias]
ls = ! git for-each-ref --sort='-committerdate' --format='%(refname:short)' refs/heads | xargs -n1 -I{} git log -n1 --pretty=format:'%Cblue%cr%Creset%x09{}' {}
@rconradharris
rconradharris / gist:1163861
Created August 22, 2011 22:55 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Developer on OpenStack
Favorite Python project: Other than OpenStack...PyParsing. Something I've wanted to do with it, but haven't had time, is use it to build a SQL beautifier similar to SQLinForm.
Favorite Conference: PyCon
Python Experience Level: Beginner Intermediate [ Advanced ] Dutch
@rconradharris
rconradharris / Retro.theme
Created August 16, 2011 04:51
Retro Theme for FocusWriter
[Background]
Type=0
Color=#191919
ImageFile=
[Foreground]
Color=#191919
Opacity=100
Width=700
Rounding=0
@rconradharris
rconradharris / nose_multiprocessing_eventlet
Created August 13, 2011 21:54
Nose w/ Multiprocessing Bombing when Eventlet Patches Socket
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ uname -a
Darwin Richards-MacBook-Air.local 11.0.1 Darwin Kernel Version 11.0.1: Wed Jun 29 19:53:22 PDT 2011; root:xnu-1699.23.2~1/RELEASE_X86_64 x86_64
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ cat test_nose_multiprocessing_with_eventlet.py
import eventlet
eventlet.patcher.monkey_patch(socket=True)
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ nosetests --processes=1
test gist