Skip to content

Instantly share code, notes, and snippets.

Ivan Bessarabov bessarabov

Block or report user

Report or block bessarabov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:fbfa71283ae08cd697603d62db744623
00 - 3 **
01 - 7 ****
02 - 3 **
03 - 0
04 - 0
05 - 0
06 - 0
07 - 16 **********
08 - 15 **********
09 - 65 ********************************************
View gist:4025b26049d7eb4eed0416b36d8afc98
00 - 17
01 - 13
02 - 14
03 - 13
04 - 27
05 - 114 **
06 - 248 ******
07 - 419 **********
08 - 976 ***********************
09 - 1680 *****************************************
View gist:34b240951c5b7813e0d20542b5f00e45
bessarabov@server:/tmp/linux$ git show|head -1; git log --author="Linus Torvalds" --format="%ae" | sort | uniq -c
commit fec88ab0af9706b2201e5daf377c5031c62d11f7
32 torvalds@evo.osdl.org
1522 torvalds@g5.osdl.org
24203 torvalds@linux-foundation.org
7 torvalds@macmini.osdl.org
2 torvalds@merom.osdl.org
8 torvalds@osdl.org
166 torvalds@ppc970.osdl.org
4 torvalds@ppc970.osdl.org.(none)
@bessarabov
bessarabov / script.pl
Last active Jul 31, 2019
Script to generate data shown in post 'At what time of day does famous programmers work? Part 2. Workweek vs Weekend.' — https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend
View script.pl
#!/usr/bin/perl
# This script is made to show graphs with git commit time made on workweek vs weekend
#
# The desription of this script and results of its usage is avaliable at:
# https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend
#
# usage:
#
# git log --author="Sebastian Riedel" --format="%H %ai" | perl script.pl
View gist:f0e2edaa2820915eb99082e70d6fd292
## Creating a sample git repo with one commit (I'm in timezone +0300 Europe/Moscow)
bessarabov@air:~$ mkdir sample
bessarabov@air:~$ cd sample/
bessarabov@air:~/sample$ git init .
Initialized empty Git repository in /Users/bessarabov/sample/.git/
bessarabov@air:~/sample$ touch a
bessarabov@air:~/sample$ git add a
@bessarabov
bessarabov / gist:674ea13c77fc8128f24b5e3f53b7f094
Last active Sep 19, 2019
One-liner to generate data shown in post 'At what time of day does famous programmers work?' — https://ivan.bessarabov.com/blog/famous-programmers-work-time
View gist:674ea13c77fc8128f24b5e3f53b7f094
git log --author="Linus Torvalds" --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; 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); }'
View a.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:18b1348e36db7af2a14c9ffffe0539a5
0.450135
0.449023
0.525095
0.546522
0.447679
0.481264
0.584093
0.485225
0.435078
0.464566
You can’t perform that action at this time.