easy dl input
This commit is contained in:
parent
d8b1eec408
commit
968b219616
2 changed files with 7 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
inputs/
|
||||
input/
|
||||
.sessioncookie
|
5
load-todays-input.bash
Normal file
5
load-todays-input.bash
Normal 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"
|
Loading…
Reference in a new issue