Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created February 6, 2017 20:24
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/8d29d82e7abe14df9fec1f5f3af81c1c to your computer and use it in GitHub Desktop.
Save bessarabov/8d29d82e7abe14df9fec1f5f3af81c1c to your computer and use it in GitHub Desktop.
bessarabov@air:~/tmp/delete_after_2017-02-03/linux$ 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); }'foreach (
2012
00 - 24
01 - 11
02 - 14
03 - 12
04 - 27
05 - 53 *
06 - 171 ****
07 - 605 ***************
08 - 1216 ******************************
09 - 1695 ******************************************
10 - 2012 **************************************************
11 - 1816 *********************************************
12 - 1580 ***************************************
13 - 1382 **********************************
14 - 1381 **********************************
15 - 1457 ************************************
16 - 1346 *********************************
17 - 1186 *****************************
18 - 962 ***********************
19 - 667 ****************
20 - 559 *************
21 - 358 ********
22 - 153 ***
23 - 79 *
0 9s
bessarabov@air:~/tmp/delete_after_2017-02-03/linux$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment