Skip to content

Instantly share code, notes, and snippets.

View NickLarsenNZ's full-sized avatar
🦀

Nick NickLarsenNZ

🦀
View GitHub Profile
@NickLarsenNZ
NickLarsenNZ / ado_bump.sh
Last active November 4, 2020 01:25
Automatically bump the semantic version tag if there are changes since the last (with discrimination between major, minor, patch bumps from comments)
# https://gist.github.com/NickLarsenNZ/ee907e05429a02fb6f2bcc73e7c34733
set -euo pipefail
COMMIT_MESSAGES=""
LAST_TAG=$(git describe --abbrev=0 --tags 2>/dev/null)
if [ -z "$LAST_TAG" ]; then
>&2 echo "No tags previously defined"
LAST_TAG="0.0.1"
# Get commit logs for all time
@NickLarsenNZ
NickLarsenNZ / kafka-consumer.py
Last active February 6, 2025 18:32
A small Kafka producer and consumer example
#!/usr/bin/env python3
# Usage:
# pip install kafka-python
# ./consumer.py <my-topic>
# NOTE: only runs for 10 seconds as per consumer_timeout_ms
# See:
# - https://raw.githubusercontent.com/simplesteph/kafka-stack-docker-compose/master/zk-multiple-kafka-multiple.yml
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ helm_release.external-dns
id: <computed>
chart: "external-dns"
disable_webhooks: "false"