Dev Notes

This post is just a public collection of commands that I'll always forget.

conda

# list available environments
conda env list

# listing installed packages in current environment
conda list

# activate environment
conda activate env-name

# install package
conda install keras

docker

# delete all containers
docker rm $(docker ps -a -q)

# delete all images
docker rmi $(docker images -q)

# inspect container
docker inspect [container-id]

# build image from Dockerfileopendiff
docker build -t [username]/[image-name] .

# create and run a container
docker run -it -p 4000:4000 -v $PWD:/var/www [image-name] bash
(https://github.com/mhart/alpine-node)

files


# compress directory
zip ../elixir-3-app.zip -r * .[^.]*
  
# list directory sizes
du -h --max-depth=1 ./ | sort -hr 

Comments