Solve 10 and 11.
This commit is contained in:
12
get.sh
Executable file
12
get.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <day>"
|
||||
exit 1
|
||||
fi
|
||||
DAY=$1
|
||||
|
||||
SESSION_COOKIE=$(keyring get aoc-session-cookie felixm)
|
||||
echo $SESSION_COOKIE
|
||||
|
||||
curl "https://adventofcode.com/2023/day/$DAY/input" --cookie "session=$SESSION_COOKIE" > "i$DAY.txt"
|
||||
Reference in New Issue
Block a user