My solutions to the Advent of Code 2021 in Elixir
$ mix escript.build
$ aoc_cli <DAY> [options]
<DAY>
is a number from 1 to 25 representing the <DAY>
's programming puzzle result.
The --help
and --version
options can be given instead of <DAY>
for usage and versioning information
In order to be able to download the puzzle data, aoc_cli
requires that you set an environment variable containg your Advent of Code Session Cookie. Here's how to get your session cookie:
- Login on Advent of Code
- Open browser's developer console (e.g. right click --> Inspect) and navigate to the Network tab
- GET any input page, say adventofcode.com/2021/day/1/input, and look in the request headers.
It's a long hex string. Export that to an environment variable
AOC_SESSION_COOKIE
.