From c336657b53e4d2ab245d3d8a06b9659fbce9b787 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sun, 23 Aug 2020 17:43:47 +0200 Subject: Add scripts/create-rooms.sh --- scripts/create-rooms.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/create-rooms.sh diff --git a/scripts/create-rooms.sh b/scripts/create-rooms.sh new file mode 100644 index 0000000..76b47bb --- /dev/null +++ b/scripts/create-rooms.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -o nounset -o pipefail -o errexit + +for ((r=1; r <= 20; r++)); do + echo $r + curl 'https://uplcg.jaspervdj.be/rooms' \ + -H 'Content-Type: application/x-www-form-urlencoded' \ + --data-raw "id=room$(printf "%02d" "$r")&password=&deck=icfp2020" +done -- cgit v1.2.3