From 3b21cc90aea155be4978cd68d7b38649401a834a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 19 Dec 2023 22:22:31 +0200 Subject: [PATCH] AOC2023: Add helper for downloading puzzle input --- userspace/aoc2023/input/.gitignore | 1 + userspace/aoc2023/input/get-input.sh | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 userspace/aoc2023/input/.gitignore create mode 100755 userspace/aoc2023/input/get-input.sh diff --git a/userspace/aoc2023/input/.gitignore b/userspace/aoc2023/input/.gitignore new file mode 100644 index 0000000000..327bab299c --- /dev/null +++ b/userspace/aoc2023/input/.gitignore @@ -0,0 +1 @@ +day*_input.txt diff --git a/userspace/aoc2023/input/get-input.sh b/userspace/aoc2023/input/get-input.sh new file mode 100755 index 0000000000..059557cee3 --- /dev/null +++ b/userspace/aoc2023/input/get-input.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +wget --no-cookies --header "Cookie: session=$AOC_SESSION" https://adventofcode.com/2023/day/$1/input -O day$1_input.txt