Skip to content

Instantly share code, notes, and snippets.

View jannfis's full-sized avatar

Jann Fischer jannfis

  • Red Hat
  • Canada
View GitHub Profile
@jannfis
jannfis / contributors.sh
Last active March 13, 2022 21:52
Find all contributors for a given range of commits
#!/bin/sh
set -e
set -o pipefail
REVRANGE="$1"
if test "$REVRANGE" = ""; then
echo "USAGE: $0 <revrange>" >&2
exit 1
fi
for commit in $(git log ${REVRANGE} --oneline | awk '{print $1}'); do
gh pr list --state merged --search "$commit" --json author --template '{{range .}}{{printf "@%s\n" .author.login}}{{end}}'
@jannfis
jannfis / launch.json
Last active September 20, 2022 13:52
vscode launcher configuration for debugging Argo CD components
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug argocd-server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/main.go",
"args": [
@jannfis
jannfis / start-debug.sh
Last active March 5, 2021 07:46
Script to start Argo CD locally for debugging
#!/bin/sh
# Usage: $0 <component to debug>
# Will start all other components, and leaves starting the component to debug
# to the user (most likely, using delve via vscode).
MANDATORY_COMPONENTS="dex redis ui git-server dev-mounter"
case "$1" in
"server")
ADDITIONAL_COMPONENTS="repo-server controller"
;;