NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
$ brew remove git | |
$ brew remove curl | |
$ brew install openssl | |
$ brew install --with-openssl curl | |
$ brew install --with-brewed-curl --with-brewed-openssl git |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
# Original version https://superuser.com/a/1293762/622572 | |
export SERVER_PORT_SERVICE SERVER_PORT_ADMIN | |
readarray -t RANDOM_PORTS < <( | |
comm -23 <(seq 65000 65535) \ | |
<(ss -ant \ | |
| tail -n +1 \ | |
| awk '{print $4}' \ | |
| awk -F ":" '{print $NF}' \ | |
| sort | uniq) \ |