Skip to content

Instantly share code, notes, and snippets.

View chmduquesne's full-sized avatar

Christophe-Marie Duquesne chmduquesne

View GitHub Profile
@chmduquesne
chmduquesne / ola.py
Created June 22, 2012 14:12 — forked from brunobord/ola.py
Olà in Python / ASCII art
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import time
import random
ncols = 26
nrows = 20
def cls():
@chmduquesne
chmduquesne / ansible-role-test.sh
Last active January 16, 2020 16:22 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)