website/bin/gitlab_cal-heatmap-container.sh

9 lines
197 B
Bash
Raw Normal View History

2020-01-12 14:14:15 +01:00
#!/bin/zsh
#github=github.com/users/syui/contributions_calendar_data
f=${0:a:h:h}/static/json/datas.json
u=gitlab.com/u/$USER/calendar
t=`curl -sL $u|grep '{"'`
echo ${t%,}|jq .
echo ${t%,} >! $f