# at destination folder:
git init
git remote add origin <git repo https url>
# generate key
ssh-keygen -t rsa -b 4096 -C "<your_email@example.com>"
# ensure ssh agent is running
eval "$(ssh-agent -s)"
# add key to agent
GOAL: Keep secrets out of plaintext (esp when syncing dockerfile and docker-compose.yaml to repo)
- Each secret needs to be a single text file with a clear name
- Edit
docker-entrypoint.sh
to run per environmental variable - (Re)Build docker image with
docker-entrypoint.sh
as entrypoint - Create
secrets
in docker-compose - Call secrets with "_FILE" appended to the name when specifying environmental variable
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
import os | |
def isdrive(path): | |
"""Return `True` if path is the drive root | |
Parameters | |
---------- | |
path : path-like | |
""" | |
path = os.path.abspath(path) |
For most applications, native vs. emulated modes do not need to be user-managed. However, for development purposes, managing the entire stack's architecture may become necessary.
For an x86 (Rosetta-emulated) environment, create an emulated Terminal.app
:
- Open
Finder
Rules / SOPs:
- Don't work in
base
environment - Use
mamba
as a solver - Create default environments with pinned packages, and clone / update the default envs as needed
OlderNewer