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 | |
| # Ensure the script is running as root | |
| if [[ "$(id -u)" != '0' ]]; then | |
| exec sudo "$BASH_SOURCE" "$@" | |
| fi | |
| # Update the system |
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 | |
| # Ensure the script is running as root | |
| if [[ "$(id -u)" != '0' ]]; then | |
| exec sudo "${BASH_SOURCE[0]:-$0}" "$@" | |
| fi | |
| try_install() { |
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
| local threads = {} | |
| function setup(thread) | |
| table.insert(threads, thread) | |
| end | |
| function init(args) | |
| count_2xx = 0 | |
| count_3xx = 0 | |
| count_400 = 0 |
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 -eou pipefail | |
| if [[ "${TRACE-0}" == "1" ]]; then | |
| set -o xtrace | |
| fi | |
| COMMAND=${0##*/} | |
| DIRNAME=$(dirname "$0") |
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 -euo pipefail | |
| # The general approach is outlined in the following StackOverflow approach | |
| # https://stackoverflow.com/a/60584381/1613695 | |
| # This script was generated with AI to demonstrate the approach. It is certainly | |
| # not producton ready. | |
| # Configuration |
OlderNewer