This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: $0 <github_organization> <github_team> <workflow_filename>" | |
echo " e.g.: $0 fancy-org fancy-team fancy.yml" | |
exit 1 | |
fi | |
ORG=$1 | |
TEAM=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Note: For actions-cache to work one must pass or set a GITHUB_TOKEN variable with a valid PAT. | |
function print_help { | |
echo "usage: $0 -r <user/repository_name> [-b <branch>]" | |
echo " -r Repository. The format must be: <user/repository_name>" | |
echo " -b Delete cache for specific branch only" | |
echo "e.g.: $0 -r xalvarez/github-team-dashboard -b main" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decrypt text using an AWS KMS key | |
function kms_decrypt | |
argparse 'm/message=' -- $argv | |
or return | |
if set --query _flag_message | |
echo $_flag_message | aws-encryption-cli --decrypt --wrapping-keys discovery=true --input - --output - --decode -S | jq | |
else | |
printf "Please provide a message using the flag -m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Remove all GitHub code scanning analysis results for a given repository and organization. | |
# | |
# The script assumes that github-cli (https://github.com/cli/cli) is installed and that authentication has already been | |
# performed. You might still need to request additional permissions as follows: | |
# | |
# gh auth refresh -h github.com -s admin:repo_hook | |
# gh auth refresh -h github.com -s delete_repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# This script calculates time spent on an activity which starts and ends the same day. | |
APPLICATION_NAME=$0 | |
printHelp() { | |
echo "usage: $APPLICATION_NAME <start_time> <end_time> [<break_in_minutes>]" | |
echo " start_time e.g. 8:00. Also valid: 08:00, 8" | |
echo " end_time e.g. 17:00. Also valid: 17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.renderWhitespace": "all", | |
"editor.rulers": [100,120], | |
"editor.wordWrapColumn": 100, | |
"files.exclude": { | |
"**/.classpath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/.factorypath": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Retrieve the first 100 open pull requests of a team's first 100 GitHub repositories. | |
# Requires: | |
# - git: https://git-scm.com/downloads | |
# - jq: https://stedolan.github.io/jq/download/ | |
APPLICATION_NAME=$0 | |
ORGANIZATION=$1 | |
TEAM=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Clone and fork a team's first 100 GitHub repos. Then, add remotes for all potential forks. | |
# | |
# Requires: | |
# - git: https://git-scm.com/downloads | |
# - github-cli: https://github.com/cli/cli | |
# - jq: https://stedolan.github.io/jq/download/ | |
# | |
# The first time you run this script or use gh for the first time in your system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global_config] | |
title_hide_sizetext = True | |
suppress_multiple_term_dialog = True | |
[keybindings] | |
zoom_in = <Primary>KP_Add | |
zoom_out = <Primary>KP_Subtract | |
new_tab = <Primary><Shift>t | |
go_next = "" | |
go_prev = "" | |
split_horiz = <Alt>h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = <name> | |
email = <email> | |
signingkey = <key> | |
[color] | |
ui = auto | |
[fetch] | |
prune = true | |
[alias] | |
fa = fetch --all |
NewerOlder