Skip to content

Instantly share code, notes, and snippets.

# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
import csv
import sys
import urllib
import lxml.html
import requests
import requests_cache
requests_cache.install_cache('cache')
@dstanek
dstanek / encapsulated_visitor.py
Last active July 30, 2017 13:12
Some visitor examples
#!/usr/bin/env python3
# An example visitor where the visitor doesn't know the internal
# structure of the object heirarchy.
class Department:
def __init__(self, name, employees):
self._name = name
self._employees = employees
@dstanek
dstanek / example.yml
Created April 18, 2017 20:03
LXC on Fedora Ansible
---
- name: get LXC working on fedora
hosts: localhost
connection: local
become: true
become_user: root
tasks:
- package:
name: "{{ item }}"
# Copyright 2016 David Stanek <dstanek@dstanek.com>
#
# 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
Table structures:
limit_types:
id uuid
service string
name string
default int
project_limits:
id uuid
#!/usr/bin/env python3
# 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

Keybase proof

I hereby claim:

  • I am dstanek on github.
  • I am dstanek (https://keybase.io/dstanek) on keybase.
  • I have a public key ASBElrEv3o_LAWfSX-jGtlRgkqyn5QK7R4QI1LD0i2PfWwo

To claim this, I am signing this object:

Actors:
- user of client
- horizon
- osc
- me
- client
- admin
- service
Today who knows about URLs or operations?
#!/usr/bin/env python
import json
import os
import subprocess
import sys
PYTHON = '/home/dstanek/.py-venvs/simple2/bin/python'
INVENTORY = '/home/dstanek/bin/openstack_inventory.py'