Skip to content

Instantly share code, notes, and snippets.

@richard-wallintin
richard-wallintin / unit vs integration test regexp
Created May 5, 2019 17:36
maven surefire/failsafe regexp
IT --> .*IT$
UT --> .*?(?!IT)..$
@richard-wallintin
richard-wallintin / aws-ecr-login
Last active August 31, 2022 08:26
bash/zsh script to perform assume-role and/or MFA login in AWS and set environment variables + script to perform docker login with ECR
#!/bin/bash
# This file can be called as program
# (it will output the assignment of the REGISTRY environment variable for convenience with `eval $(aws-ecr-login)`)
# OR sourced in .bashrc or .zshrc
# (in that case it will directy set the REGISTRY environment variable and have no output)
function aws-ecr-login {
if [ -z "${AWS_REGION:-}" ]; then
echo "environment variable AWS_REGION required" >&2