Skip to content

Instantly share code, notes, and snippets.

View joariasl's full-sized avatar

Jorge Arias joariasl

View GitHub Profile
@joariasl
joariasl / load-envs-docker-entrypoint.sh
Last active March 28, 2024 02:10
Docker EntryPoint to load environment variables from files to use with file mounted secrets like Secret Store CSI Driver
#!/bin/sh
ENV_PATH_SEPARATOR=${ENV_PATH_SEPARATOR:-':'}
oldIFS=$IFS
IFS=$ENV_PATH_SEPARATOR
for ENV_FILE in $ENV_PATH; do
if [ -f "$ENV_FILE" ]; then
export $(grep -v '^#' "$ENV_FILE" | xargs -0)
else
@joariasl
joariasl / aws-sts.sh
Last active November 3, 2021 15:06
Script to issue a STS token using an AWS profile credential that set another AWS profile credential with the result
#!/bin/bash
script_name=`basename "$0"`
text_bold=$(tput bold)
text_normal=$(tput sgr0)
showHelp() {
echo -e "${script_name}
${text_bold}DESCRIPTION${text_normal}
@joariasl
joariasl / github_gpg_key.md
Last active May 17, 2023 19:16 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.

  • Install required tools

  • Latest Git Client

  • gpg tools

    # Ubuntu
    

sudo apt-get install gpa seahorse

@ankurk91
ankurk91 / github_gpg_key.md
Last active June 7, 2024 14:31
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@tsabat
tsabat / zsh.md
Last active July 7, 2024 16:56
Getting oh-my-zsh to work in Ubuntu