This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
"""Genetic algorithm base classes.""" | |
import random | |
from collections import deque | |
from itertools import izip | |
import attr | |
@attr.s() | |
class Population(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [ -n "$1" ]; then | |
name=$1 | |
else | |
name=$(hostname) | |
fi | |
git clone https://github.com/iNecas/ownca.git | |
cd ownca | |
yes "" | ./generate-ca.sh | |
yes | ./generate-crt.sh $name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import uuid | |
def gen_json(hypervisors, guests): | |
virtwho = {} | |
hypervisor_list = [] | |
for i in range(hypervisors): | |
guest_list = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/JacobCallahan/content-host-d.git | |
cd content-host-d | |
eho "Building rhel images" | |
for i in rhel6 rhel7 rhel74; do | |
git checkout $i | |
docker build -t ch-d:$i . | |
done | |
echo "Downloading sles images" | |
for i in sles11 sles12 suse; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from collections import deque | |
from time import time | |
import docker | |
def rm_container(client, containers): | |
del_container = containers.popleft() | |
client.remove_container(del_container['container'], v=True, force=True) | |
print ('Done with container #{0}'.format(del_container['number'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adonna | |
Agah | |
Agema | |
Ahamkara | |
Aiat | |
Aksis | |
Aksor | |
AlakHul | |
Alzok | |
Amytis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# If the shell is not running interactively, immediately return. This ensures | |
# that programs like scp are given a pristine environment. | |
[[ $- != *i* ]] && return | |
export TERM=gnome-256color | |
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' | |
if [ -f `which powerline-daemon` ]; then | |
powerline-daemon -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Agema | |
Tubach | |
Holborn | |
Jagi | |
Warmind | |
Cayde | |
Draksis | |
Wintership | |
Cryptarch | |
Ahamkara |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Rename all files that start with a single _ to start with a single . | |
find . -type f -name "_[^_]*" -exec rename _ . {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This playbook will setup a docker-ized content host deployment | |
# environment on the target system(s). | |
# After completion, a RHEL 7.4 docker image will be available | |
# and the git repo will be located at /root/content-host-d | |
- hosts: beaker | |
remote_user: root | |
tasks: | |
- name: Install Docker | |
package: name=docker state=latest |
OlderNewer