Skip to content

Instantly share code, notes, and snippets.

View celebdor's full-sized avatar

Antoni Segura Puimedon celebdor

View GitHub Profile
#!/usr/bin/env python3
# Copyright 2016 Antoni Segura Puimedon <celebdor@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/usr/bin/env python2
# Copyright 2016 Antoni Segura Puimedon <celebdor@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

Keybase proof

I hereby claim:

  • I am celebdor on github.
  • I am celebdor (https://keybase.io/celebdor) on keybase.
  • I have a public key whose fingerprint is 4422 A952 3F73 AB4D 2FEB 2BB0 2329 618D 2967 720A

To claim this, I am signing this object:

@celebdor
celebdor / Makefile
Created December 11, 2015 20:01
Makefile to deploy charms 2015/12/11
SHELL := /bin/bash
.PHONY: \
deploy_ost_controller \
deploy_nsdb \
deploy_ost_compute \
relate_amqp \
relate_keystone \
relate_midonet_agent \
relate_midonet_api \
@celebdor
celebdor / local.conf
Created November 25, 2015 15:23
devstack local.conf for Kuryr reference impl (ovs)
[[local|localrc]]
ENABLED_SERVICES=""
enable_plugin kuryr https://github.com/openstack/kuryr.git
enable_service kuryr
enable_service etcd-server
enable_service docker-engine
# Credentials
ADMIN_PASSWORD=pass
@celebdor
celebdor / local.conf
Last active August 8, 2016 04:58
devstack local.conf for Kuryr and MidoNet v5 (monolithic plugin)
[[local|localrc]]
OFFLINE=No
RECLONE=No
ENABLED_SERVICES=""
enable_plugin kuryr https://github.com/openstack/kuryr.git
enable_service kuryr
enable_service etcd-server
enable_service docker-engine
##Cans and Some String
####Introduction
So we can all agree that Docker is cool. Containers are cool, repeatability is cool, portability is cool, we're all cool. Everything is unicorns and rainbows. But something is missing in this fairy tale land, and it's something we all like to forget about. With this wide world of other containers and services out there ("world wide web" anyone?), we want to make use of these things and connect ourselves in.
That's it! We forgot networking!
####Current State of Affairs
Well that's not **quite** fair, we didn't _forget_ it per se, we just all got caught up in building cool containers and plumb left it for later.
FROM centos:centos6.6
MAINTAINER Antoni Segura Puimedon <toni@midokura.com>
RUN yum install -y scl-utils
RUN yum localinstall -y https://www.softwarecollections.org/en/scls/rhscl/v8314/epel-6-x86_64/download/rhscl-v8314-epel-6-x86_64.noarch.rpm
RUN yum install -y v8314
RUN yum localinstall -y https://www.softwarecollections.org/en/scls/rhscl/ruby193/epel-6-x86_64/download/rhscl-ruby193-epel-6-x86_64.noarch.rpm
RUN yum install -y ruby193 ruby193-ruby-devel
RUN yum update -y
RUN yum install -y gcc
@celebdor
celebdor / net_qos.py
Created June 20, 2013 10:10
create a vdsm network with QoS.. As you can see there is some problem passing the data to libvirt that makes the outbound average be used for inbound and the outbound to be ignored.
from vdsm import vdscli
connection = vdscli.connect()
connection.addNetwork('toni', '', '', ['p1p3'], {'qosInbound':{'average': '1024'}, 'qosOutbound':{'average': '2400'}})
@celebdor
celebdor / about.md
Created August 9, 2011 18:29 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer