From 3b21e702c44d8f721e9ced997c417481f2c273ca Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 29 Nov 2025 13:44:34 +0100 Subject: Improved aoc script (was aocd) --- aocd | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 aocd (limited to 'aocd') diff --git a/aocd b/aocd deleted file mode 100755 index cab4060..0000000 --- a/aocd +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Download input from the Advent of Code website (https://adventofcode.com/). -# Requires setting an AOC_SESSION_COOKIE variable with a valid session cookie. - -# usage: aocd [year n] -# If year and n are not specified, the current year and day are used. - -YEAR="${1:-$(date +'%Y')}" -DAY="${2:-$(date +'%d' | sed 's/^0//')}" -URL="https://adventofcode.com/$YEAR/day/$DAY/input" - -curl "$URL" -H "cookie: session=$AOC_SESSION_COOKIE" -o input.txt -- cgit v1.3