Skip to content

Instantly share code, notes, and snippets.

View adrienaury's full-sized avatar

Adrien Aury adrienaury

  • CGI France
  • Nantes, France
View GitHub Profile
@adrienaury
adrienaury / dtags.sh
Last active October 26, 2022 22:33
Get a list of tags from Dockerhub
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
__base="$(basename ${__file} .sh)"
@adrienaury
adrienaury / cmdcache.sh
Last active April 19, 2021 18:04
Caching the result of a command in bash
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
show_help() {
echo
echo "Usage: ${BASH_SOURCE[0]} [OPTIONS] -- COMMAND"

Keybase proof

I hereby claim:

  • I am adrienaury on github.
  • I am adrienaury (https://keybase.io/adrienaury) on keybase.
  • I have a public key ASDZRFc3q9vgmIxvAoBE6O_91OM9yyJS_fByx28RfmGb2Ao

To claim this, I am signing this object: