Skip to content

Instantly share code, notes, and snippets.

View nshenry03's full-sized avatar

Nicholas Henry nshenry03

View GitHub Profile
@nshenry03
nshenry03 / ansible-role-test.sh
Created September 30, 2018 17:40 — 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 = "fedora29")
# - 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)
#!/bin/bash -
#===============================================================================
#
# FILE: mysql2sqlite.sh
#
# USAGE: ./mysql2sqlite.sh [options] [db_name [tbl_name ...]] | \
# sqlite3 database.db
#
# EXAMPLE: ./mysql2sqlite.sh --no-data -u root -pMySecretPassWord \
# myDbase | sqlite3 database.db
@nshenry03
nshenry03 / Thorfile
Last active December 30, 2015 02:09 — forked from jtimberman/Thorfile
# encoding: utf-8
require 'bundler'
require 'bundler/setup'
require 'thor/foodcritic'
require 'berkshelf/thor'
begin
require 'kitchen/thor_tasks'
Kitchen::ThorTasks.new