Skip to content

Instantly share code, notes, and snippets.

View nrb's full-sized avatar
🤔

Nolan Brubaker nrb

🤔
View GitHub Profile
{
"ErrorCode": 1,
"ErrorStatus": "Success",
"Message": "Ok",
"MessageData": {},
"Response": {
"data": {
"arena": [
{
"activeRewardIndexes": [
@nrb
nrb / fallout.txt
Last active November 23, 2015 15:49
Roll 2d6. Consult the following table to take your next action:
12: Super Mutants kill you with Fat Man nuclear rocket launchers. You die.
11: A pack of feral ghouls descends on your camp and eat you. You die.
10: You stumble across a raider camp. They outgun you and scavenge your corpse. You die.
9: You drink irradiated river water. You die.
8: While descending into an old ravine, you lose your footing on the gravel. You fall and die.
7: You hit your head on a bulkhead while leaving the vault. You die.
6: A pack of feral dogs corner you and tear off your limbs. You die.
5: A dinner of rad roaches doesn't sit well with your stomach. You die.
@nrb
nrb / explore-osa.md
Last active January 15, 2016 21:23
Exploring openstack-ansible

Installing ansigenome is hugely helpful. This tool can inspect Ansible roles and provide information about dependencies, requirements, and variables.

All these examples assume being in the openstack-ansible/playbooks/roles directory

Generate a dependency graph PNG

ansigenome export -o dep-graph.png

Dump information about all roles (variables, facts, dependencies) as JSON

ansigenome export -t dump

@nrb
nrb / y260.md
Created April 28, 2016 20:26
Unorganized notes about getting ArchLinux running on a Lenovo Thinkpad Y260

Installing

Disable SecureBoot for the time being.

For booting my Archlinux kernel (4.3 series on the USB drive I made), I needed the following options:

nomodeset intel_pstates=no_hwp

You can edit the parameters by hitting the e key on the ArchISO boot option

@nrb
nrb / make_config.sh
Last active September 28, 2016 23:17
Quick, dirty, undocumented way to generate a complete openstack_user_config.yml file for openstack-ansible. Should work in stable/newton and master as it transitions to Ocata. If you wish to change the config, edit the .aio files in etc/openstack_deploy/(conf.d)
#!/bin/env bash
touch tests/__init__.py
python -c "from tests.test_inventory import make_config; make_config()"
echo "tests/inventory/openstack_user_config.yml created"
rm tests/__init__.py
---
# in env.d, gist doesn't allow subdirectories
container_skel:
cinder_volumes_container:
belongs_to:
- storage-infra_containers
properties:
is_metal: false
inventory develop-inst-nodeps: /Users/nola7999/projects/openstack-ansible
inventory installed: alabaster==0.7.9,Babel==2.3.4,bashate==0.5.1,bottle==0.12.10,cffi==1.8.3,chardet==2.3.0,coverage==4.2,cryptography==1.5.2,doc8==0.7.0,docutils==0.12,enum34==1.1.6,flake8==2.5.5,funcsigs==1.0.2,hacking==0.10.2,idna==2.1,ipaddress==1.0.17,Jinja2==2.8,MarkupSafe==0.23,mccabe==0.2.1,mock==2.0.0,ndg-httpsclient==0.4.2,netaddr==0.7.18,-e git+https://git.openstack.org/openstack/openstack-ansible@3070530e8805969f6f458fab82925bebe470efdf#egg=openstack_ansible,openstackdocstheme==1.5.0,oslosphinx==4.8.0,pbr==1.10.0,pep8==1.5.7,Pillow==3.4.1,prettytable==0.7.2,pyasn1==0.1.9,pycparser==2.17,pycrypto==2.6.1,pyflakes==0.8.1,Pygments==2.1.3,pyOpenSSL==16.2.0,python-memcached==1.58,pytz==2016.7,PyYAML==3.12,reno==1.8.0,requests==2.11.1,restructuredtext-lint==0.17.2,six==1.10.0,snowballstemmer==1.2.1,Sphinx==1.3.6,sphinx-rtd-theme==0.1.9,sphinxmark==0.1.14,stevedore==1.18.0,virtualenv==15.0.3
inventory runtests: PYTHONHASHSEED='100'
@nrb
nrb / conclusion.txt
Last active December 16, 2016 18:23
Testing group_var resolution with various inventory configurations
The more specific group var values win; there isn't any bleed over from parent or sibling groups in these tests.
@nrb
nrb / boxstarter.ps1
Created January 9, 2017 23:59
My boxstarter scripts
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\' -Name 'Windows Search' | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'AllowCortana' -PropertyType DWORD -Value '0' | Out-Null
cinst steam
cinst battle.net
cinst origin
cinst cpu-z
cinst obs-studio
@nrb
nrb / main.rs
Created January 11, 2017 01:24
matrix testing
#[macro_use]
extern crate matrix;
use matrix::prelude::*;
fn main() {
let rows: usize = 2;
let cols: usize = 4;