Skip to content

lbussell/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code (2025)

It's the advent of code.

Usage

Setting secrets

The CLI automatically fetches inputs from the Advent of Code website and passes them to the solutions.

Log in to Advent of Code. Then, open the browser dev tools. Find the "session" cookie created by the site. On Chromium-based browsers, this is under "Application" > "Storage" > "Cookies":

DevTools screenshot

Set the .NET user-secret AdventOfCodeOptions:SessionToken to the value of the session cookie:

pushd src/Cli
dotnet user-secrets set "AdventOfCodeOptions:SessionToken" "$SESSION_COOKIE_VALUE"
popd

Running

Use the -h/--help option to see all available command line options:

$ ./run.sh -h

Options:
  --year <year>
  --day <day>
  --part <part>
  -?, -h, --help  Show help and usage information
  --version       Show version information

About

it's the advent of code

Resources

Stars

Watchers

Forks