update scripts

This commit is contained in:
xfy
2025-03-04 08:36:58 +08:00
parent a8d80a6ede
commit 20b168f45f
3 changed files with 88 additions and 83 deletions

View File

@ -1,5 +1,6 @@
#!/bin/env bash
# Oha request
oha_url() {
if [[ -z $1 ]]; then
echo "usage: oha_url <url>"
@ -7,3 +8,8 @@ oha_url() {
fi
oha -z 10sec -c 50 --latency-correction --disable-keepalive --insecure $1
}
mac-update() {
brew update && brew upgrade && brew cleanup &&
rustup update && rustup self update
}