Repository containing solutions (hopefully) to the Advent of Code brain teasers.
In order to use this repo you will need to obtain your Advent of Code Session Cookie.
This can be done by:
-
Logging in to AOC with your github (or similar)
-
Open the browsers console (right clicking and then opening inspect)
-
GETany input on the page (or reload it) and look at the request headers- It will exist
Network->Name [1]->Headers->Request Headers->cookie->session
- It will exist
-
Make a note of this cookie
- One recommendation is storing it in a simple text file at
~/.config/aoc/token - Or as an environment variable
export AOC_SESSION_COOKIE=...
- One recommendation is storing it in a simple text file at
Currently no release is created for this but it can be run in the following manner:
go run src/main.go -day 1 -year 2022 -aoc_cookie ...
- The
aoc_cookieargument is optional and it will be searched for in the following order:-aoc_cookieargument parsedAOC_SESSION_COOKIEenvironment variable~/.config/aoc/tokenfile