Skip to content

Instantly share code, notes, and snippets.

[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_ssh_user=fedora
ansible_python_interpreter=/usr/bin/python3
become=True
openshift_deployment_type=origin
---
- name: test
hosts: all
tasks:
- command: echo "something ran"
delegate_to: host1
run_once: True
register: echores
- debug: var=echores
parent:
{% for item in childern %}
name: {{ item.name }}
port: {% if item.proto == 'https' %}443{% else %}80{% endif %}
things:
{% for t in item.things %}
- prepend-something{{ t }}
{% endfor %}
https://askubuntu.com/questions/515407/how-recipe-to-build-only-one-kernel-module
/*
Demo json + libcurl cpp program
Copyright (C) 2016 Michael Gugino
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 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
import setuptools
import sys, io, os, glob
from setuptools import setup, find_packages, Extension
# In python < 2.7.4, a lazy loading of package `pbr` will break
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing # noqa
except ImportError:
@michaelgugino
michaelgugino / gist:554db0656cd1b5a21da22da58bf5af99
Created April 14, 2016 18:10
How to build anything with cython
#mylib.pyx
import pandas as pd
df = pd.DataFrame({ 'A' : 1.,
'B' : pd.Timestamp('20130102'),
'C' : pd.Series(1, index=list(range(4)), dtype='float32'),
'D' : pd.Series([1, 2, 1, 2], dtype='int32'),
'E' : pd.Categorical(["test", "train", "test", "train"]),
'F' : 'foo' })