Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created March 4, 2020 19:39
Show Gist options
  • Save qpfiffer/29473fa1ad2dbe3b8626cb192271940a to your computer and use it in GitHub Desktop.
Save qpfiffer/29473fa1ad2dbe3b8626cb192271940a to your computer and use it in GitHub Desktop.
quinlan@corinthian:~/.weechat/logs$ grep -P '\t[mM][a-zA-Z]* [cC][a-zA-Z]*$' irc.freenode.#infoforcefeed.weechatlog irc.freenode.#shitstream.tv.weechatlog | sed 's/.*log://g' > /tmp/matches
quinlan@corinthian:~/.weechat/logs$ cat /tmp/matches | sed -E 's/[[:space:]].*//' | uniq -c | sed -E -e 's/^[[:space:]]*//' | gnuplot -e 'set terminal dumb 150 50; set grid; set datafile separator " "; set xdata time; set timefmt "%Y-%m-%d"; plot "< cat" using 2:1 with lines title ""'
45 +-+-+----+---+----+---+---+----+---+----+---+---+----+-*-+----+---+----+---+---+----+---+---+----+---+----+---+---+----+---+----+---+----+-+-+
+ + + + * + + + + +
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
40 +-+....................................................*...................................................................................+-+
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
35 +-+....................................................*...................................................................................+-+
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
30 +-+....................................................*...................................................................................+-+
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
| : : : * : : : : |
25 +-+....................................................*...................................................................................+-+
| : : : ** : : : : |
| : : : ** : : : : |
| : : : ** : : : : |
| : : : ** : : : : |
20 +-+....................................................**..................................................................................+-+
| : : : ** : : : : |
| : : : ** * : : : : |
| : : : ** * : : : : |
| : : : ** * : : : : |
15 +-+....................................................**...........*......................................................................+-+
| : : : ** * : : : : |
| : : : ** * : : : : |
| : : : ** * : : : : |
| : : : ** * : : : : |
10 +-+....................................................**..........**......................................................................+-+
| : : : ** ** : * * : : : |
| : : : ** * ** *: ** * : : : |
| : : : **** ** *: ** * : : * : |
| : : : **** ****: *** * : : * * * |
5 +-+....................................................****........****..****..**.*.................***************************............+-+
| : : ** :****** ****: **** ********************* :* ** * * * * |
| : : ** *:******* * ******************** **:* * :***** **** * * * |
| : * ***:* * ** ************************ *********** ******* **** * :************ *** ** |
+ *********************************************************************************************************************** +
0 +-+-+----+---+----+---+---+----+---+----+---+---+----+---+----+---+----+---+---+----+---+---+----+---+----+---+---+----+---+----+---+----+-+-+
01/01/13 01/01/14 01/01/15 01/01/16 01/01/17 01/01/18 01/01/19 01/01/20 01/01/21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment