{"id":28999858,"url":"https://github.com/yspreen/aoc","last_synced_at":"2025-06-25T08:09:15.696Z","repository":{"id":64179192,"uuid":"573937206","full_name":"yspreen/aoc","owner":"yspreen","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-21T15:10:45.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T16:25:05.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yspreen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-03T22:37:59.000Z","updated_at":"2025-03-21T15:10:51.000Z","dependencies_parsed_at":"2023-12-07T21:23:57.983Z","dependency_job_id":"e8e6f948-a4c6-46a7-a3ba-5f1f4b73d44a","html_url":"https://github.com/yspreen/aoc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yspreen/aoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yspreen%2Faoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yspreen%2Faoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yspreen%2Faoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yspreen%2Faoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yspreen","download_url":"https://codeload.github.com/yspreen/aoc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yspreen%2Faoc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261832977,"owners_count":23216500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-25T08:09:14.416Z","updated_at":"2025-06-25T08:09:15.675Z","avatar_url":"https://github.com/yspreen.png","language":"Python","funding_links":[],"categories":["Tools and Utilities"],"sub_categories":[],"readme":"# AOC CLI\n\n(using same commands as apexatoll/aoc-cli.)\n\nBuilt during a [live stream](https://www.youtube.com/watch?v=rPo43HUyZ_c\u0026list=PL8QzwnmPB7qbvjJiEG-NJq6b2E-MA4By4).\n\n## Usage:\n\n### Install\n\n```bash\ncd \u003csome project folder\u003e\ngit clone https://github.com/yspreen/aoc.git\ncd aoc\nsudo python3 main.py install\necho '^ make sure to install all missing requirements that are printed out by this command'\nchmod 755 main.py # make usable by other users.\n```\n\n### Solve the Puzzles\n\n```\ncd \u003cthe folder you use for aoc\u003e\n aoc login \u003cyour cookie\u003e\nmkdir 2022\ncd 2022\naoc year 2022 # will set THIS FOLDER as the one for 2022.\naoc day 02 # will create a NEW FOLDER called `02` that contains this day.\ncd 02\necho \"now do some coding and solve this puzzle 🧠\"\naoc solve 1234 # part one.\naoc solve 2345 # part two.\n```\n\n### My Cookie? What's That\n\nYou can copy it from safari, chrome, or any browser that has dev tools while you're on adventofcode.com.\nSimply go to the storage or application tab in your dev tools, go to adventofcode.com and copy the `session` value.\nThat's your key that you can use with ` aoc login \u003csession\u003e`.\nSuper secret hint: if you add a space in front of a command in bash and most shells, it won't get added to your history so you can't accidentally reveal it later when doing a backwards history search.\n\n![image](https://user-images.githubusercontent.com/12631527/205678570-427c4ee7-5746-4e73-b48e-a775375eadfc.png)\n\n\n### Available Commands:\n\n```\naoc -d \u003cday\u003e / aoc day \u003cday\u003e:\n  Will create a new folder to solve the day numbered \u003cday\u003e.\n\naoc -y \u003cyear\u003e / aoc year \u003cyear\u003e:\n  Will set up the current folder to contain puzzles for year \u003cday\u003e.\n\naoc -s \u003canswer\u003e / aoc solve \u003canswer\u003e:\n  Will attempt to solve the current puzzle with answer \u003canswer\u003e.\n\naoc -k \u003cparam\u003e / aoc login \u003cparam\u003e:\n  Will use your auth cookie to sign you in. Credentials stored (and git ignored automatically) in the current directory.\n\naoc -r \u003cparam\u003e / aoc refresh \u003cparam\u003e:\n  Will reload the puzzle markdown and input.\n\naoc -i \u003cparam\u003e / aoc install \u003cparam\u003e:\n  Will install this script in /usr/local/bin.\n  (requires sudo.)\n```\n\n## Feedback?\n\nReach out on twitter [@spreen_co](https://twitter.com/spreen_co).\n\nI also do advent of code every day on [twitch](https://www.twitch.tv/at_spreen_co) and have all of my solutions here: [adventofcode](https://github.com/yspreen/adventofcode)\n\n[![github-readme-twitter](https://github-readme-twitter.gazf.vercel.app/api?id=spreen_co)](https://twitter.com/spreen_co)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyspreen%2Faoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyspreen%2Faoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyspreen%2Faoc/lists"}