Skip to content

Instantly share code, notes, and snippets.

@sakkas-zendesk
sakkas-zendesk / aws-sigv4-ssm-get-parameter.sh
Created February 4, 2022 07:57 — forked from slawekzachcial/aws-sigv4-ssm-get-parameter.sh
Using CURL to call AWS ReST API, signing request with v4 signature
#!/bin/bash
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; }
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; }
readonly parameterName="SlawekTestParam"
readonly method="POST"
@sakkas-zendesk
sakkas-zendesk / .gitattributes
Created August 11, 2022 03:37 — forked from phil-blain/.gitattributes
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown
@sakkas-zendesk
sakkas-zendesk / claimant-down-operation.md
Last active November 30, 2022 09:30 — forked from shino/claimant-down-operation.md
Operation steps when claimant node is down in Riak cluster

Created 3-node healthy cluster. Node dev1 is claimant at this point.

% dev/dev1/bin/riak-admin member-status
================================= Membership ==================================
Status     Ring    Pending    Node
-------------------------------------------------------------------------------
valid      50.0%      --      '[email protected]'
valid      25.0%      --      '[email protected]'
valid      25.0%      --      '[email protected]'
@sakkas-zendesk
sakkas-zendesk / kafkacat.adoc
Created October 9, 2023 04:52 — forked from rmoff/kafkacat.adoc
Show last three messages from a Kafka topic with kafkacat
kafkacat -b localhost:9092 \
         -t _kafka-connect-group-01-status \
         -C \
         -o-3 \
         -c3 \
         -f 'Topic %t / Partition %p / Offset: %o / Timestamp: %T\nHeaders: %h\nKey (%K bytes): %k\nPayload (%S bytes): %s\n--\n'