ref.env_management - jgrey4296/jgrey4296.github.io GitHub Wiki

Env Management

dotnet

dotnet --list-sdks
dotnet --list-runtimes
dotnet --help

nuget

dotnet nuget

elixir

ASDF

vms: https://github.com/asdf-vm/asdf https://asdf-vm.com/

https://samuelmullen.com/articles/customizing_elixirs_iex https://itnext.io/a-collection-of-tips-for-elixirs-interactive-shell-iex-bff5e177405b?gi=3b2000b5d04b https://subscription.packtpub.com/book/programming/9781784397517/5/ch05lvl1sec59/connecting-nodes

asdf --help

# Machine 1:
iex --name [email protected] --cookie test

# Machine 2:
iex --name [email protected] --cookie test
Node.connect :"[email protected]"
Node.list

jvm

Gradle

use `gradlew` in project directory, especially `./gradlew tasks` and `./gradlew installDebug`

Sdkman!

https://sdkman.io/

jvm!

available jdks: https://sdkman.io/jdks available sdks: https://sdkman.io/sdks

sdk install java
sdk install scala 3.3.3

sdk uninstall scala
sdk use scala 3.3.3
sdk default scala 3.3.3
sdk current
sdk current java
sdk version

Use ‘.sdkmanrc’ files to setup local environments

Sdkmanager

https://developer.android.com/tools/sdkmanager management of different jdks and android sdk’s

Linux Install

install straight from above link

Mac Install

on mac, bootstrap with: brew install –cask android-studio brew install –cask android-commandlinetools then use that sdkmanager to install actual sdks etc in $android_home add installed java versions using jenv, activate as necessary

android

command line tools

https://developer.android.com/tools

  • apkanalyzer
  • avdmanager
  • lint
  • retrace
  • sdkmanager

build tools

https://developer.android.com/tools/releases/build-tools

  • AAPT2
  • apksigner
  • zipalign

platform tools

https://developer.android.com/tools/releases/platform-tools

  • adb
  • etc1tool
  • fastboot
  • logcat

lisp

cask

https://cask.readthedocs.io/en/stable/

python

mamba

https://github.com/mamba-org/mamba https://mamba.readthedocs.io/en/latest/index.html

conda

https://conda.io/projects/conda/en/latest/commands.html#conda-vs-pip-vs-virtualenv-commands

https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

https://github.com/conda/conda/issues

https://github.com/pythonic-emacs/anaconda-mode

https://github.com/pythonic-emacs/company-anaconda

https://janosh.io/blog/conda-auto-env/

poetry

https://python-poetry.org/

uv

https://github.com/astral-sh/uv

cargo install --git https://github.com/astral-sh/uv uv

pip

https://pip.pypa.io/en/stable/

rust

rustup

https://dev.to/xs/setting-up-rust-on-macos-in-a-clean-way-13d1

https://rust-lang.github.io/rustup/index.html

cargo

https://doc.rust-lang.org/cargo/

ASDF

https://asdf-vm.com/guide/getting-started.html

info

asdf info

help

asdf --help

plugin list

asdf plugin list

Bash Setup

# Set a home to the repo. Don't use a symlink
ASDF_HOME="/media/john/data/github/__libs/erlang/asdf"
# Set daata dir:
ASDF_DATA_DIR="${BASE_CACHE}/asdf"
# Set base dir:
ASDF_DIR="${ASDF_HOME}"
# Activate:
. "${ASDF_HOME}/asdf.sh"

export ASDF_DATA_DIR

Installing plugins

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

Local env settings

use “.tool-versions”

Links

⚠️ **GitHub.com Fallback** ⚠️