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
#!/usr/bin/env bash | |
set -e | |
ROOT=... | |
MAX_RECURSION_DEPTH=10 | |
crawl_folder() { | |
local page=$1 | |
local folder_name=$2 |
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
#!/usr/bin/env bash | |
# Number of free GPUs on a machine | |
export n_gpus=`lspci | grep -i "nvidia" | wc -l` | |
# Return -1 if there are no GPUs on the machine | |
if [ $n_gpus -eq 0 ]; then | |
echo "-1" | |
exit -1 | |
fi |
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
install_venv: | |
# Install a virtual environment | |
virtualenv tf_cpu | |
# Activate the virutal environment | |
source tf_cpu/bin/activate | |
# Install tensorflow | |
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl | |
pip install $TF_BINARY_URL | |
install_no_venv: |
OlderNewer