Many Homebrew formulae download from ftpmirror.gnu.org, a redirector that
picks a mirror for you. When it picks a dead or overloaded one, brew upgrade
hangs, and because upgrades run as a batch, one stalled download blocks
everything. The URLs are hardcoded in formulae and the host is HTTPS, so
DNS rewrites (AdGuard, /etc/hosts) fail on certificate and path mismatches.
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 | |
| DO_HAPROXY=0 | |
| DO_HTML=0 | |
| usage() { | |
| cat >&2 <<EOF | |
| Usage: $0 [--haproxy] [--html] <http_code> <giphy_id_or_url> [Custom Message] | |
| --haproxy generate <code>.http for HAProxy errorfile |
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
| import java.util.concurrent.ThreadLocalRandom | |
| import scala.annotation.tailrec | |
| object FastUUID extends App { | |
| val hex = "0123456789abcdef".toCharArray | |
| def fastUUID(): String = { | |
| val msbees = ThreadLocalRandom.current.nextLong() | |
| val lsbees = ThreadLocalRandom.current.nextLong() |
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
| package computerdatabase; | |
| import static io.gatling.javaapi.core.CoreDsl.*; | |
| import static io.gatling.javaapi.http.HttpDsl.*; | |
| import static io.gatling.javaapi.redis.RedisDsl.redisFeeder; | |
| import io.gatling.javaapi.core.*; | |
| import io.gatling.javaapi.http.*; | |
| import io.gatling.javaapi.redis.RedisFeederBuilder; |
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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |