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 | |
| # Just let the versions ziped files in the same directory as the script | |
| # For reference, in my ~/document/multiversiongolang I have: | |
| # 1.18.gz 1.21.gz 1.22.gz 1.23.gz 1.25.gz change_go_version.sh | |
| # In .bashrc, I got the alias: | |
| # alias cgo='bash ~/documents/multiversiongolang/change_go_version.sh' | |
| script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
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
| #!/bin/bash | |
| WEBHOOK_URL="https://discord.com/api/v10/webhooks/XXX/XXX" | |
| NAME_TO_CHECK="luancaliel.dev" | |
| TEST_FREQUENCY="2" | |
| USER_TO_MENTION="435228312214962204" | |
| alert_debounce=true | |
| healthy=true |
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
| interface ProbabilityProps<T> { | |
| probability: number; | |
| value: T; | |
| } | |
| // Input Example: | |
| /* calculateProbability([ | |
| {value: 'Cat', probability: 29}, |