Download github_code/freeCodeCamp__freeCodeCamp/.devcontainer/post-create.sh from Corpus-NZ/High-Quality-Code: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/refs%2Fpr%2F4/github_code/freeCodeCamp__freeCodeCamp/.devcontainer/post-create.sh
- Command line
-
hf download hf://datasets/Corpus-NZ/High-Quality-Code@refs/pr/4/github_code/freeCodeCamp__freeCodeCamp/.devcontainer/post-create.sh
-
curl -L -o post-create.sh https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/refs%2Fpr%2F4/github_code/freeCodeCamp__freeCodeCamp/.devcontainer/post-create.sh
586 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| wait_for_primary() { | |
| for _ in $(seq 1 30); do | |
| if mongosh --quiet --eval 'if (!db.hello().isWritablePrimary) quit(1)' >/dev/null 2>&1; then | |
| return 0 | |
| fi | |
| sleep 2 | |
| done | |
| return 1 | |
| } | |
| rsync -a --include='*/' --include='.turbo/***' --exclude='*' /home/node/.cache/fcc/ ./ | |
| .devcontainer/codespace-env.sh | |
| if ! wait_for_primary; then | |
| printf 'MongoDB did not become writable. Run "docker compose ps" to inspect the services.\n' >&2 | |
| exit 1 | |
| fi | |
| set -a | |
| # shellcheck disable=SC1091 | |
| . ./.env | |
| set +a | |
| pnpm seed | |