mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
add common script
This commit is contained in:
9
rua-scripts/common.sh
Normal file
9
rua-scripts/common.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
oha_url() {
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
echo "usage: oha_url <url>"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
oha -z 10sec -c 50 --latency-correction --disable-keepalive --insecure $1
|
||||||
|
}
|
Reference in New Issue
Block a user