Verae data science cheat-book
I’m Vera, and this is my cheat-book. If you want correct, complete or add something, don’t hesitate to do a pull request. Check out a smaller but uber-useful cheat sheet I found while writing this.
Docker
docker ps
docker exec -it [NAME] bash
docker attach -i [NAME]
docker build
docker-compose up
DVC
dvc and mlflow data science cookiecutter dvc.yaml schema git hook to avoid commiting large files
Business
Why we have to test Why do so many incompetent men become leaders?
Maker
SSH
Close stuck sessions
~.
to terminate the connection
Create a desktop capable ubuntu 20 on the cloud (with GPU)
bash notes
# Let´´ connect to the machine
ssh -i ~/.ssh/odd -L 5901:localhost:5901 vera_odd_co@34.83.165.112
# Download nvidia drivers
curl 'http://us.download.nvidia.com/tesla/440.64.00/NVIDIA-Linux-x86_64-440.64.00.run' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en,en-US;q=0.7,es;q=0.3' --compressed -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Cookie: vid=dc0c1504-ba63-42cf-95c7-eba68721fd39' -H 'Upgrade-Insecure-Requests: 1' > NVIDIA-Linux-x86_64-440.64.00.run
chmod +x NVIDIA-Linux-x86_64-440.64.00.run
sudo ./NVIDIA-Linux-x86_64-440.64.00.run