This commit is contained in:
2024-12-01 14:52:48 -05:00
parent 82fb017d03
commit be0f9029a4
6 changed files with 116 additions and 5 deletions

7
today.sh Normal file → Executable file
View File

@@ -3,7 +3,7 @@
__year=2024
__day="${1}"
if [ "${day}" == ""]; then
if [ "${__day}" == "" ]; then
__day=$(date '+%d')
fi
@@ -15,7 +15,4 @@ if [ ! -f "${padded}/inputs/input" ]; then
-A "https://git.yetaga.in/alazyreader/AdventOfCode${__year}/" \
-H "Cookie: session=`cat .cookie`" https://adventofcode.com/${__year}/day/${__day##0}/input > "${padded}/inputs/input"
fi
# if [ ! -f "${padded}/main.go" ]; then
# cp -n main.go.tmpl ${padded}/main.go
# fi
open "https://adventofcode.com/${__year}/day/${__day}"
open "https://adventofcode.com/${__year}/day/${__day##0}"