Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created February 6, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/da39ba52a1f59886d0d99aa49bd3e2ce to your computer and use it in GitHub Desktop.
Save bessarabov/da39ba52a1f59886d0d99aa49bd3e2ce to your computer and use it in GitHub Desktop.
bessarabov@air:~/tmp/delete_after_2017-02-03/git$ git log --author="torvalds@ppc970.osdl.org" --author="torvalds@linux-foundation.org" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; say $m; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
73
00 - 3 **
01 - 7 ****
02 - 3 **
03 - 0
04 - 0
05 - 0
06 - 0
07 - 16 **********
08 - 15 **********
09 - 65 ********************************************
10 - 59 ****************************************
11 - 73 **************************************************
12 - 59 ****************************************
13 - 39 **************************
14 - 51 **********************************
15 - 63 *******************************************
16 - 46 *******************************
17 - 33 **********************
18 - 32 *********************
19 - 34 ***********************
20 - 34 ***********************
21 - 33 **********************
22 - 22 ***************
23 - 16 **********
bessarabov@air:~/tmp/delete_after_2017-02-03/git$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment