Alex Balgavy

Just some stuff about me.

Here's my dotfiles repository.

Check out my blog.

My keys: PGP, SSH

My crypto wallets (BTC, XMR)


What links here:

Why lf is the best TUI file manager

172.31.15.176 - - [03/Oct/2019:06:54:09 +0000] "GET / HTTP/1.1" 200 5127 "-" "ELB-HealthChecker/2.0"
172.31.41.111 - - [03/Oct/2019:06:54:55 +0000] "GET /api/dataset/csv HTTP/1.1" 401 15 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"
172.31.15.176 - - [03/Oct/2019:07:03:00 +0000] "GET / HTTP/1.1" 499 0 "-" "ELB-HealthChecker/2.0"

You can create a function to visualize all response codes with an image from http.cat:

cmd lookup_code ${{
    tmp=$(mktemp)
    trap 'rm $tmp' INT TERM EXIT
    grep '"GET ' $f \
    | cut -d'"' -f3 \
    | cut -d' ' -f2 \
    | while read -r code; do
      curl -sL https://http.cat/"$code" -o "$tmp" \
        && sxiv $tmp >/dev/null 2>&1
      done

    rm "$tmp"
    trap - INT TERM EXIT
}}