From 1176a24a1f76f551ec32eda731e8d5cdf93ad085 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 18 Aug 2021 13:25:31 -0400 Subject: Rename Devalloc to Dragons --- Biz/Dragons/get-examples.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Biz/Dragons/get-examples.sh (limited to 'Biz/Dragons/get-examples.sh') diff --git a/Biz/Dragons/get-examples.sh b/Biz/Dragons/get-examples.sh new file mode 100755 index 0000000..a35a282 --- /dev/null +++ b/Biz/Dragons/get-examples.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +if [ "$#" == "0" ] +then + echo "usage: $(basename $0) " + echo "copy the cookie from the browser dev console" + exit 1 +fi +cookie="$1" +curl 'https://dragons.dev/analysis?user=github&repo=training-kit' \ + -X POST \ + -H 'Content-Type: application/x-www-form-urlencoded' \ + -H "Cookie: JWT-Cookie=$cookie" \ + --compressed --insecure -- cgit v1.2.3