-
Create a new private repository on Github
-
Fork the repo (
BASE_REPO_URL
) to your new private repo (PRIVATE_REPO_URL
) as follows:BASE_REPO_URL=<BASE> # remote URL of repo you are forking PRIVATE_REPO_URL=<PRIVATE> # remote URL of your new private fork repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#params | |
PROJECT=my-project | |
ZONE=us-central2-b | |
# Command to list TPU resources | |
output=$(gcloud alpha compute tpus queued-resources list \ | |
--project $PROJECT \ | |
--zone $ZONE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT=my-project | |
ZONE=us-central2-b | |
# Print the list of TPU resources in any state | |
gcloud alpha compute tpus queued-resources list \ | |
--project $PROJECT \ | |
--zone $ZONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SHORCUTS | |
# Ctrl - T new vertical pane | |
# Ctrl + U new hroizontal plane | |
# Alt + P kill pane | |
# Alt + W kill window | |
# Alt + P kill session | |
# Page Up / Page Down - shift windows | |
# 0 is too far from ` ;) | |
set -g base-index 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MUJOCO_DIR=~/.mujoco | |
mkdir -p $MUJOCO_DIR | |
wget https://roboti.us/download/mujoco200_linux.zip -O $MUJOCO_DIR/mujoco200.zip | |
unzip $MUJOCO_DIR/mujoco200.zip | |
wget https://roboti.us/file/mjkey.txt -P $MUJOCO_DIR | |
rm $MUJOCO_DIR/mujoco200.zip | |
# symlink to mujoco200 (this is what mujoco-py looks for) | |
ln -s $MUJOCO_DIR/mujoco200_linux $MUJOCO_DIR/mujoco200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MUJOCO_DIR=~/.mujoco | |
mkdir -p $MUJOCO_DIR | |
# 200 | |
wget https://roboti.us/download/mujoco200_linux.zip -O $MUJOCO_DIR/mujoco200.zip | |
unzip $MUJOCO_DIR/mujoco200.zip | |
wget https://roboti.us/file/mjkey.txt -P $MUJOCO_DIR | |
rm $MUJOCO_DIR/mujoco200.zip | |
# 210 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION=2.1.1 | |
ARCH=x86_64 | |
MUJOCO_DIR=~/.mujoco | |
mkdir -p $MUJOCO_DIR | |
wget https://github.com/deepmind/mujoco/releases/download/$VERSION/mujoco-$VERSION-linux-$ARCH.tar.gz -O $MUJOCO_DIR/mujoco.tar.gz | |
tar -xzf $MUJOCO_DIR/mujoco.tar.gz -C $MUJOCO_DIR | |
rm $MUJOCO_DIR/mujoco.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARCH=x86_64 | |
MUJOCO_DIR=~/.mujoco | |
mkdir -p $MUJOCO_DIR | |
wget https://github.com/deepmind/mujoco/releases/download/2.1.0/mujoco210-linux-$ARCH.tar.gz -O $MUJOCO_DIR/mujoco.tar.gz | |
tar -xzf $MUJOCO_DIR/mujoco.tar.gz -C $MUJOCO_DIR | |
rm $MUJOCO_DIR/mujoco.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONDA_DIR=~/miniconda3 | |
OS_VERS=Linux-x86_64 | |
mkdir -p $CONDA_DIR | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$OS_VERS.sh -O $CONDA_DIR/miniconda.sh | |
bash $CONDA_DIR/miniconda.sh -b -u -p $CONDA_DIR | |
rm -rf $CONDA_DIR/miniconda.sh | |
$CONDA_DIR/bin/conda init bash | |
$CONDA_DIR/bin/conda init zsh |
NewerOlder