Funções para serem utilizadas dentro de um GoogleSheets.
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 sh | |
# | |
# Will add k8s (cluster) credentials for all existing projects for current | |
# gcloud account. | |
# | |
# Author: augusto.hp+oss@gmail.com | |
# shellcheck disable=SC3043 | |
set -e |
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 sh | |
# | |
# Allows you to execute a shell into a running pod inside k8s. You can | |
# execute this script/command without any argument and it will display | |
# all available namespaces, then all available pods in the chosen namespace | |
# and then enter the pod you chose. | |
# | |
# Choices are given using fzf, allowing you to fuzzy search among occurrences. | |
# | |
# Author: Augusto Pascutti <augusto.hp+oss@gmail> |
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 sh | |
# | |
# Aids listing/filtering secrets from kubernetes using kubectl. Aims to be minimal | |
# and portable. The only thing you need is this file and kubectl. | |
# | |
# Author: Augusto Pascutti <augusto.hp+oss@gmail> | |
# License: MIT | |
# URL: https://gist.github.com/augustohp/b8483ca619f99682cc4c4d6b6e313818 | |
# | |
# "The only way to make sense out of change |
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 sh | |
# | |
# Helps links on your blog/docs to stay healthy. | |
# | |
# vim: ft=sh sw=4 ts=4 noet: | |
APP_NAME=$(basename "$0") | |
APP_VERSION="1.0.0" | |
APP_AUTHOR="augusto.hp+oss@gmail.com" |
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 | |
# vim: noet ft=sh sw=4 ts=2: | |
# | |
# Unattended GPG key generation script. | |
# Author: Augusto Pascutti <augusto.hp+oss@gmail.com> | |
set -e | |
set -o pipefail | |
APP_NAME=$(basename $0) |
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
<# | |
.SYNOPSIS | |
Will rename and move reharsals from removable drives to another place. | |
.DESCRIPTION | |
This script will rename and move `.WAV` files from removable drives to another place. | |
It will rename files that are not named with a date to a date and an incremental suffix. | |
It will move files that are named with a date to a different path containing the year and the quarter they were recorded. | |
The destination path is hardcoded in the script. | |
#> |
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 | |
# | |
# Clones all repositories in an organization using `gh` CLI. | |
# | |
# Author: Augusto Pascutti <augusto.hp+oss@gmail.com> | |
# License: MIT | |
# vim: ft=sh noet ts=2 sw=2: | |
APP_NAME="$(basename $0)" | |
APP_VERSION="1.0.0" |
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 | |
# | |
# Lists terraform releasesusing GitHub API. | |
APP_NAME=$(basename $0) | |
APP_VERSION="1.0.0" | |
OPTION_NUMBER_ONLY="" | |
OPTION_STABLE_ONLY="" | |
OPTION_ORDER="" |
NewerOlder