Skip to content

Instantly share code, notes, and snippets.

@eana
eana / gitlab.md
Created May 2, 2021 10:35
Output Terraform Plan information into a merge request

Output Terraform Plan information into a merge request

Add terraform plan output to merge requests and expose details from terraform plan runs directly into a merge request widget enabling you to see statistics about the resources that Terraform creates, modifies, or destroys.

@eana
eana / clone-all-repositories.sh
Last active February 14, 2021 12:26
Clone all repositories, including the private ones.
#!/usr/bin/bash
GITHUB_TOKEN=$(grep token ~/.gitconfig | awk '{print $3}')
GITHUB_USER="eana"
REPOSITORIES=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/user/repos?per_page=100 | grep ssh_url | grep "${GITHUB_USER}" | cut -d ':' -f 2-3 | tr -d '",')
for repository in ${REPOSITORIES}; do
git clone "${repository}"
done
#!/bin/bash
# shellcheck disable=SC2046
set -euo pipefail
#
# Sample for getting temp session token from AWS STS
#
# aws --profile youriamuser sts get-session-token --duration 3600 \
# --serial-number arn:aws:iam::012345678901:mfa/user --token-code 012345