Skip to content

Instantly share code, notes, and snippets.

View nrb's full-sized avatar
🤔

Nolan Brubaker nrb

🤔
View GitHub Profile
@nrb
nrb / inventory_migrate.py
Created August 6, 2015 22:43
Juno -> Kilo inventory migrator
#!/usr/bin/env python
import json
from pprint import pprint
import sys
def get_bridges(inventory):
"Returns bridge names and interface information for provider networks."
@nrb
nrb / dynamic_inventory.diff
Created August 6, 2015 20:36
Dynamic Inventory differences between juno and kilo
20d19
< import hashlib
42c41
< 'is_metal',
---
> 'properties',
43a43
> 'physical_host_group',
45a46
> 'container_networks',
import github3
try:
prompt = raw_input
except NameError:
prompt = input
def my_two_factor_function():
code = ''
% python scraper.py
Ishtar Sink, Venus. Modifiers: Arc Burn, Epic, Nightfall, Solar Burn, Void Burn
Ishtar Sink, Venus. Modifiers: Heroic, Void Burn

The Abyss

Goal

Reach the end of the maze and hold plate til bridge forms.

Strategy

The Fireteam must run between each of the lamps to traverse te maze.

2015-01-21 11:33:05,326 [DEBUG] [helga.comm:250]: [<--] ##destinychat/palendae - Finally
2015-01-21 11:33:05,326 [DEBUG] [helga.plugins:229]: Plugin nightfall may not be installed or have incorrect entry_point information
2015-01-21 11:33:05,326 [DEBUG] [helga.plugins:229]: Plugin heroic may not be installed or have incorrect entry_point information
2015-01-21 11:33:05,326 [DEBUG] [helga.plugins:229]: Plugin nightfall may not be installed or have incorrect entry_point information
2015-01-21 11:33:05,326 [DEBUG] [helga.plugins:229]: Plugin heroic may not be installed or have incorrect entry_point information
2015-01-21 11:33:10,560 [DEBUG] [helga.comm:250]: [<--] ##destinychat/palendae - Hi dinklebot
2015-01-21 11:33:10,560 [DEBUG] [helga.plugins:229]: Plugin nightfall may not be installed or have incorrect entry_point information
2015-01-21 11:33:10,561 [DEBUG] [helga.plugins:229]: Plugin heroic may not be installed or have incorrect entry_point information
2015-01-21 11:33:10,561 [DEBUG] [helga.plugins:229]:
failed: [znc.nbrubaker.com] => {"cmd": "/opt/helga/bin/pip install helga==1.5.1", "failed": true}
msg: stdout: Collecting helga==1.5.1
Downloading helga-1.5.1.tar.gz (73kB)
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-i0TfJo/helga/setup.py", line 43, in <module>
str(req.req) for req in parse_requirements('requirements.txt')
File "/opt/helga/local/lib/python2.7/site-packages/pip/req/req_file.py", line 19, in parse_requirements
"parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'
@nrb
nrb / scraper.py
Created January 20, 2015 20:01
A nightfall/heroic strike information scraper
from functools import partial
import requests
import bs4
template = "%(strike)s. Modifiers: %(mods)s"
event_url = 'http://destinytracker.com/destiny/events'
def get_mods(soup, index):
mod_list = soup.select('ul')[index]
py26 inst-nodeps: /Users/nola7999/projects/oslo.config/.tox/dist/oslo.config-1.5.0.6.g063a5ef.zip
py26 runtests: PYTHONHASHSEED='3510259001'
py26 runtests: commands[0] | python setup.py testr --slowest --testr-args=
running testr
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . --list
db type could not be determined
error: testr failed (3)
ERROR: InvocationError: '/Users/nola7999/projects/oslo.config/.tox/py26/bin/python setup.py testr --slowest --testr-args='
@nrb
nrb / horizon
Created September 12, 2014 17:00
iff --git a/lib/horizon b/lib/horizon
index 614a0c8..802b80a 100644
--- a/lib/horizon
+++ b/lib/horizon
@@ -92,6 +92,8 @@ function init_horizon {
local local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py
cp $HORIZON_SETTINGS $local_settings
+ _horizon_config_set $local_settings "" COMPRESS_OFFLINE True
+