easy dl input

This commit is contained in:
mtrx 2024-12-08 22:54:00 +01:00
parent d8b1eec408
commit 968b219616
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
inputs/ input/
.sessioncookie

5
load-todays-input.bash Normal file
View file

@ -0,0 +1,5 @@
day=$(date +%-e)
day_zero=$(date +%0e)
session=$(cat .sessioncookie)
mkdir -p input
curl -b "session=${session}" -o "./input/${day_zero}.txt" "https://adventofcode.com/2024/day/${day}/input"