Skip to content

Instantly share code, notes, and snippets.

View alexandermeindl's full-sized avatar

Alexander Meindl alexandermeindl

View GitHub Profile

Keybase proof

I hereby claim:

  • I am alexandermeindl on github.
  • I am alexandermeindl (https://keybase.io/alexandermeindl) on keybase.
  • I have a public key ASAmWZQUsQN_Y1oo_aiYtTN6h_wjEZm0lz7hCLjAihvtzgo

To claim this, I am signing this object:

@alexandermeindl
alexandermeindl / ansible-role-test.sh
Created July 16, 2018 15:35 — 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)
@alexandermeindl
alexandermeindl / sample_data.rb
Last active May 30, 2017 15:52
Create sample data for Redmine performance tests
desc <<-END_DESC
Seed sample data for benchmark tests - do not use it with production data!
Examples:
# get this script
cd $REDMINE_ROOT
wget -O lib/tasks/sample_data.rb https://gist.githubusercontent.com/alexandermeindl/ed6ae8a199f1b4869ca0f581b9d94f16/raw
# prepare base redmine data
export RAILS_ENV=test
bundle exec rake db:drop db:create db:migrate