Hacker News new | ask | show | jobs
by tocariimaa 572 days ago
I have this script:

  #!/bin/sh
  set -e
  curl "https://adventofcode.com/${YEAR:?}/day/${DAY:?}/input" --cookie "session=$(cat .token)"
then: YEAR=2024 DAY=1 ./aocdata