Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
No longer a maintainer on Velero.

Nolan Brubaker nrb

🌴
No longer a maintainer on Velero.
View GitHub Profile
@nrb
nrb / hide_ads.css
Last active Aug 29, 2015
hide_ads.css
View hide_ads.css
/* Safari: Preferences > Advanced > User Stylesheet
Firefox: Insert into ~/Library/Application\ Support/Firefox/Profiles/<profile_id>/chrome/userContent.css
For myself, I keep the file in Dropbox, and I symlinked it into the FF location.
*/
/* Hides Facebook ad divs, and the like button */
.ego_section { display: none; }
div#pagesNav { display: none; }
div#appsNav { display: none; }
@nrb
nrb / spam_horizon.sh
Created Sep 12, 2014
Reproduce Horizon bug #1345955
View spam_horizon.sh
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10000 ]; do
curl http://localhost:8081 & curl http://localhost:8081
let COUNTER=$COUNTER+1
echo "FINISHED ATTEMPT $COUNTER"
done
View horizon
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
+
View gist:0932f25f6ff42ebe53a6
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 / scraper.py
Created Jan 20, 2015
A nightfall/heroic strike information scraper
View scraper.py
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]
View gist:717af7b11a59b29e84c4
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'
View gist:6feff77e1be75865dd6b
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]:
View crotas_end_hints.md

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.

View gist:39eb112e335dc55450ed
% python scraper.py
Ishtar Sink, Venus. Modifiers: Arc Burn, Epic, Nightfall, Solar Burn, Void Burn
Ishtar Sink, Venus. Modifiers: Heroic, Void Burn
View gist:d6d2332af467a18bbafb
import github3
try:
prompt = raw_input
except NameError:
prompt = input
def my_two_factor_function():
code = ''