This file contains hidden or 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 | |
| [[ -z "${AGENT_TYPES}" ]] && AGENT_TYPES="[\"AI Assistant\", \"AI Data Scraper\", \"AI Search Crawler\", \"Undocumented AI Agent\"]" | |
| usage(){ | |
| echo -e "Usage:\n | |
| -t | DARKVISITORS_TOKEN= Site's access token | |
| -d | DARKVISITORS_DISALLOW= A string specifying which URLs are disallowed. Defaults to / to disallow all URLs. | |
| -a | AGENT_TYPES= An array of agent types. Agent types include AI Assistant, AI Data Scraper, AI Search Crawler, and Undocumented AI Agent. Defaults to ${AGENT_TYPES} | |
| -c | CURL_ARGS= Args to pass to curl |
This file contains hidden or 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 -o pipefail | |
| USE_DOCKER_FILTER_REPO=1 | |
| #[[ -z "${BRANCHES}" ]] && BRANCHES="anduril2 multi-channel" | |
| [[ -z "${BRANCHES}" ]] && BRANCHES="multi-channel" | |
| [[ -z "${LP_USER}" ]] && LP_USER="toykeeper" | |
| # "auto": Delete commits that became empty due to filtering; preserve ones that were already empty. "always" / "never" = obvious |
This file contains hidden or 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 | |
| [[ "${SLEEP_TIME}" == "" ]] && SLEEP_TIME=60 | |
| [[ "${SHUTDOWN_DELAY}" == "" ]] && SHUTDOWN_DELAY=1800 | |
| wait_for_builds(){ | |
| while (ps auxw | grep -E '[d]ocker +buildx +build') #[d] stops grep self-matching without wasting a process launch | |
| do | |
| echo "$(date --rfc-3339=seconds): builds are running" >&2 | |
| sleep ${SLEEP_TIME} |