After booting a new instance:
curl -H 'Cache-Control: no-cache' https://gist.githubusercontent.com/aidando73/2876aabaae7ded0dec68d04d34b70086/raw/new_instance.bash | bash
If you want to use conda:
source ~/miniconda3/bin/activate
New attached storage:
mkdir -p "$STORAGE_DIR/.ssh"
ssh-keygen -t ed25519 -C "[email protected]" -f $STORAGE_DIR/.ssh/id_ed25519
eval "$(ssh-agent -s)"
echo -e "Host github.com\n\tIdentityFile $STORAGE_DIR/.ssh/id_ed25519" >> $STORAGE_DIR/.ssh/config
echo -e "Host hf.co\n\tIdentityFile $STORAGE_DIR/.ssh/id_ed25519" >> $STORAGE_DIR/.ssh/config
echo -e "Go to https://github.com/settings/ssh/new and add:\n\tkeyname: lambdalabs.com/$(basename $STORAGE_DIR)\n\tvalue: $(cat $STORAGE_DIR/.ssh/id_ed25519.pub)"
echo -e "Go to https://huggingface.co/settings/keys/add?type=ssh and add:\n\tkeyname: lambdalabs.com/$(basename $STORAGE_DIR)\n\tvalue: $(cat $STORAGE_DIR/.ssh/id_ed25519.pub)"