Dev Notes

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


# 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


# 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


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