summaryrefslogtreecommitdiff
path: root/Biz
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-03-22 10:55:02 -0400
committerBen Sima <ben@bsima.me>2021-03-22 10:55:02 -0400
commitfb3ea71e49c6eb37dcacffffa7857229a4f183dd (patch)
treea37e928d777703f84e65cb1350f2b703b1a8d4d7 /Biz
parent2e667b6b3acb07f585449ab970ebdbc376ec1a87 (diff)
Add script for loading example analysis
Diffstat (limited to 'Biz')
-rwxr-xr-xBiz/Devalloc/get-examples.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/Biz/Devalloc/get-examples.sh b/Biz/Devalloc/get-examples.sh
new file mode 100755
index 0000000..2e0647b
--- /dev/null
+++ b/Biz/Devalloc/get-examples.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+if [ "$#" == "0" ]
+then
+ echo "usage: $(basename $0) <cookie>"
+ echo "copy the cookie from the browser dev console"
+ exit 1
+fi
+cookie="$1"
+curl 'https://devalloc.io/analysis?user=github&repo=training-kit' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded' \
+ -H "Cookie: JWT-Cookie=$cookie" \
+ --compressed --insecure