16 lines
687 B
Bash
Executable File
16 lines
687 B
Bash
Executable File
# Allow usage of aliases when using sudo
|
|
alias ls='ls --color'
|
|
alias less='less -R'
|
|
alias curlTiming="curl -w \" time_namelookup: %{time_namelookup}s\n time_connect: %{time_connect}s\n time_appconnect: %{time_appconnect}s\n time_pretransfer: %{time_pretransfer}s\n time_redirect: %{time_redirect}s\n time_starttransfe
|
|
r: %{time_starttransfer}s\n ----------\n time_total: %{time_total}s\n\" -o /dev/null"
|
|
|
|
dbase64() {
|
|
echo -n "${1}" | base64 -d
|
|
}
|
|
|
|
function appConnections()
|
|
{
|
|
ss -tpla | grep -v Recv-Q | awk '{print $5 $6}' | sed -e 's#\(.*\)users:((\"\(\w\+\)\".*#\2 - \1#' | sort | uniq
|
|
}
|
|
alias conns=appConnections
|