Skip to content

Instantly share code, notes, and snippets.

@ahgraber
ahgraber / docker-secrets.md
Last active July 8, 2025 11:35
Docker-secrets

GOAL: Keep secrets out of plaintext (esp when syncing dockerfile and docker-compose.yaml to repo)

  1. Each secret needs to be a single text file with a clear name
  2. Edit docker-entrypoint.sh to run per environmental variable
  3. (Re)Build docker image with docker-entrypoint.sh as entrypoint
  4. Create secrets in docker-compose
  5. Call secrets with "_FILE" appended to the name when specifying environmental variable

secret-init.sh:

@ahgraber
ahgraber / SSH.md
Last active March 14, 2021 19:04
SSH keys
@ahgraber
ahgraber / conda.md
Last active December 20, 2024 19:36
conda cheatsheet

Conda cheatsheet and reminders

Installation

Install miniconda

mamba is a faster, drop-in replacement for conda. You can swap almost all commands between conda & mamba...

@ahgraber
ahgraber / git.md
Last active December 14, 2022 16:15
Git Cheats

Git cheatsheet & reminders

Add existing repo to local file structure

# at destination folder:
git init
git remote add origin <git repo https url>