Skip to content

Instantly share code, notes, and snippets.

@misza222
Last active October 26, 2022 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misza222/97fff84d95600263fedcbf7b202ec6cd to your computer and use it in GitHub Desktop.
Save misza222/97fff84d95600263fedcbf7b202ec6cd to your computer and use it in GitHub Desktop.
#!/bin/sh
# run it from /storage/pre_run.sh in paperspace fastai container
# setup git user
git config --global user.email "misza222@gmail.com"
git config --global user.name "Michal Pawlowski"
# download and setup cmd utils
mkdir -p bin
curl https://gist.githubusercontent.com/misza222/85e4644b2fd734b89380ec91dd423c09/raw/0aa6bc052129abe42cf7d7bce4be4985fcb22424/push.sh > bin/push.sh
chmod +x bin/push.sh
# ... add it to path
PATH=$PATH:/notebooks/bin
# update fastbook
git pull
# download repos
# if [ ! -d "blog" ]; then
# git clone git@github.com:pawlowskimichal/blog.git blog
# fi
if [ ! -d "course22" ]; then
git clone https://github.com/fastai/course22.git course22
fi
if [ ! -d "course-v3" ]; then
git clone https://github.com/fastai/course-v3
fi
# if [ ! -d "dl_experiments" ]; then
# git clone https://misza222@github.com/misza222/dl_experiments.git
# fi
# if [ ! -d "dlwpt-code" ]; then
# git clone --depth 1 https://github.com/deep-learning-with-pytorch/dlwpt-code.git
# fi
# if [ ! -d "ThinkStats2" ]; then
# git clone https://github.com/AllenDowney/ThinkStats2.git
# fi
# if [ ! -d "AI4M" ]; then
# git clone --depth 1 https://github.com/shaikhzhas/AI4M.git
# fi
# # ML1 from FastAI
# if [ ! -d "fastai1" ]; then
# git clone git@github.com:misza222/fastai1.git
# fi
conda install -y unzip kaggle
#pip install -U --user 'timm>=0.6.2dev' # installed locally
echo "Done with gist script"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment