aoc2025: Prepare programming environment

This commit is contained in:
2025-12-12 02:48:40 +02:00
parent 6a924db68c
commit 5d9e9c021a
8 changed files with 129 additions and 0 deletions

15
userspace/aoc2025/init-day.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
if [[ -z $1 ]]; then
echo Please specify day number >& 2
exit 1
fi
if [[ ! -d day$1 ]]; then
cp -r day-template day$1
sed -i "s/day-template/day$1/g" day$1/*
fi
if [[ ! -f input/day$1_input.txt ]]; then
wget --no-cookies --header "Cookie: session=$AOC_SESSION" https://adventofcode.com/2025/day/$1/input -O input/day$1_input.txt
fi