Skip to content

November 2022

Notes in November.

If you need to have openjdk first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc

Hands on with hurl

🎉 I wound up blogging about it.

I read about hurl on HN and wanted to give it a go: it seems super neat!

HTTP/2 200
xpath "string(//head/title)" contains "HTTP Status Codes"
xpath "string(/html/body/div/div/div[2]/div/div/div[3]/div[2]/h4)" == "HTTP 418 I'm a teapot"
xpath "/html/body/div/div/div[2]/div/div/div[3]/div[2]/a/img" count == 1
xpath "//img" count == 6
header "Content-Type"  == "text/html; charset=utf-8"
header "Server" == "Google Frontend"

Migrating to astro

# gsed -i 's/^cover/image/g'
#  gsed  -i   's/\/images\/posts/~\/assets\/images\/posts/g'