Skip to content

Instantly share code, notes, and snippets.

@dstanek
dstanek / make-ics.py
Last active October 20, 2016 21:15
Create a personalized iCal for the OpenStack Newton Summit schedule
#!/usr/bin/env python3
# Download https://www.openstack.org/summit/austin-2016/summit-schedule/mine/?goback=1
# to mine.html and then run this script. The my.ics can be imported into your
# calendar.
#
# Common problems:
# - i've only tested against my calendar (and got feedback about bugs from others) so
# so you may find the parsing isn't quite right
" pull gist cvimrc.vim every hour and at Chrome startup
set autoupdategist
" don't allow web pages to auto focus on input boxes when they load
set noautofocus
" smooth scrolling
set smoothscroll
let barposition = "bottom"
let blacklists = ["https://inbox.google.com/*"]
An Ansible playbook for taking a Ubuntu 16.04 node and turning it into a testshib
service provider for testing keystone/horizon federation.
Roles can be found here:
* https://galaxy.ansible.com/dstanek/devstack/
* https://galaxy.ansible.com/dstanek/keystone-sp/
Steps:
1. Create a new VM (Rackspace, Virtualbox, whatever)
2. Run 'ansible-playbook -i "[ip address]," playbook.yml' where [ip address] is your VM's IP.
#!/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'
Actors:
- user of client
- horizon
- osc
- me
- client
- admin
- service
Today who knows about URLs or operations?

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:

#!/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
Table structures:
limit_types:
id uuid
service string
name string
default int
project_limits:
id uuid
# 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
@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 }}"