Skip to content

Instantly share code, notes, and snippets.

View lazzurs's full-sized avatar
🦄
We do what we can because we must

Rob Lazzurs lazzurs

🦄
We do what we can because we must
View GitHub Profile
@lazzurs
lazzurs / cleanup-git-history.sh
Created September 1, 2025 21:22
Reset git history
#!/bin/bash
# Script to clean up git history, tags, and GitHub releases
# Requires: git, gh (GitHub CLI), jq
# Exit on any error
set -e
echo "🔄 Squashing all commits into one..."
# Store the current branch name
@lazzurs
lazzurs / ansible-role-test.sh
Last active January 2, 2018 22:43 — 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")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
# - test_idempotence: whether to test playbook's idempotence (default = true)