Skip to content

Instantly share code, notes, and snippets.

@thalesmg
thalesmg / retag.sh
Last active June 27, 2024 13:42
retag script
#!/usr/bin/env bash
set -exuo pipefail
if [[ $# -lt 3 ]]; then
echo "usage: $0 TAG REMOTE BRANCH"
return 1
fi
tag="$1"
@thalesmg
thalesmg / ghretry.sh
Last active February 7, 2025 19:44
github actions retry
#!/usr/bin/env bash
set -exuo pipefail
BRANCH=$1
GITHUB_REPO=emqx/emqx
function infer_home_repo() {
local branch="$1"
IFS=":" read -ra REF <<< "$branch"
if [[ "${#REF[@]}" -eq 2 ]]; then
@thalesmg
thalesmg / use-password-store-with-forge.org
Created January 28, 2025 16:59 — forked from timstott/use-password-store-with-forge.org
Use password-store (aka pass) with forge and github-review

Use password-store (aka pass) with forge and github-review

We can use pass as an emacs auth-source backend to access credentials.

Add auth-source-pass (included with emacs 26) to your emacs config:

(require 'auth-source-pass)
(auth-source-pass-enable)

This prepends password-store to the variable auth-sources.