Skip to content

Instantly share code, notes, and snippets.

@ccamel
Last active December 5, 2022 10:58
Show Gist options
  • Save ccamel/28698b396aaf764698c483f54c9f35bc to your computer and use it in GitHub Desktop.
Save ccamel/28698b396aaf764698c483f54c9f35bc to your computer and use it in GitHub Desktop.
nemeton-1 druid registration progress
gh pr list \
--search "label:register-validator sort:created-asc" \
--limit 150 --json "createdAt" \
--template '{{ printf "%s\n" "# date count" }}{{ range . }}{{ printf "%s %d\n" .createdAt 1}}{{ end }}' \
-R okp4/networks \
| gnuplot \
-p \
-e 'set terminal dumb size 150, 30; set autoscale; set xdata time; set timefmt "%Y-%m-%dT%H:%M:%S"; set title "Druids registration"; set xlabel "Date"; set ylabel "Count"; cumulative_sum(x)=(count=count+x,count); count=0; plot "-" using 1:(cumulative_sum($2)) title "" with lines;'
Druids registration
100 +----------------------------------------------------------------------------------------------------------------------------------------+
| + + + + + + + |
90 |-+ **-|
| ******** |
| *********************** |
80 |-+ *************** +-|
| ********************** |
70 |-+ ******************* +-|
| ******** |
60 |-+ **** +-|
| ****** |
50 |-+ ************ +-|
Count | **** |
| **** |
40 |-+ ** +-|
| *** |
30 |-+ * +-|
| * |
20 |-+ ** +-|
| * |
| * |
10 |** +-|
|* + + + + + + + |
0 +----------------------------------------------------------------------------------------------------------------------------------------+
12/01 12/02 12/02 12/03 12/03 12/04 12/04 12/05 12/05
12:00 00:00 12:00 00:00 Date00 00:00 12:00 00:00 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment