First log in to Advent of Code in your browser and fetch the cookie named 'session'.
Set it as en environment variable like this 'export SESSION = "VALUE"'
Then run the program using iex -S mix, and call the get method to get the answer, and the submit answer to post it to AoC website.
get(180101) |> submit
We follow the principle YYDDLL where
YY = Two last digit of the year, so for 2018 it would be 18
DD = The days number in two digits, so for 24th of december it would be 24
LL = Two digit number representing the level, meaning either 01 or 02
ββ Day 1
ββ Day 2
ββ Day 3
ββ Day 4
ββ Day 5
ββ Day 6
ββ Day 7
ββ Day 8
ββ Day 9
ββ Day 10
ββ Day 11
ββ Day 12
ββ Day 13
ββ Day 14
ββ Day 15
ββ Day 16
ββ Day 17
ββ Day 18
ββ Day 19
ββ Day 20
ββ Day 21
ββ Day 22
ββ Day 23
ββ Day 24
ββ Day 25
In order to test this before AoC 2022, I decided to solve for previous years
ββ 2016 - Day 1
ββ 2018 - Day 1
ββ 2018 - Day 2
ββ 2018 - Day 3
ββ 2018 - Day 3