Skip to content

Instantly share code, notes, and snippets.

@nijotz
Created August 3, 2015 17:43
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 nijotz/de02dceb032c040f7377 to your computer and use it in GitHub Desktop.
Save nijotz/de02dceb032c040f7377 to your computer and use it in GitHub Desktop.
@dequis hugs
$ tail -n 20000 * | grep 'dx hugs' | sed -E 's/[[:space:]].*//' | sort | uniq -c | sed -E -e 's/^[[:space:]]*//' | gnuplot -e 'set terminal dumb 120 40; set grid; set datafile separator " "; set xdata time; set timefmt "%Y-%m-%d"; plot "< cat" using 2:1 with lines title ""'
6 ++--+---+----+---+---+---+---+*--+---+---+---+---+---+----+---+---+---+----+---+---+---+---+---+*---+---+---+--++
+ + + * + + + + + * + +
| : : * : : : : : * : |
| : : ** : : : : : * : |
| : : ** : : : : : * : |
| : : ** : : : : : * : |
| : : ** : : : : : * : |
5 ++...........................**.................................................................*..............++
| : : ** : : : : : * : |
| : : * * : : : : : * : |
| : : * * : : : : : * : |
| : : * * : : : : : * : |
| : : * * : : : : : * : |
| : : * * : : : : : * : |
4 ++..........................*.*...................*...................................**........*..............++
| : : * * : :* : : ** * : |
| : : * * : :* : : ** * : |
| : : * * : :* : : ** * : |
| : : * * : :* : : * * ** : |
| : : * * : :* : : * * ** : |
| : : * * : :* : : * * ** : |
3 ++........................*....*........*.........**................*............**..*.*.*....***..**..........++
| : :* * : * :** : * : ** * * * *** ** |
| : :* * : * * :** : * : ** * * * *** ** |
| : :* * : * * :** : * : ** * * * *** ** |
| : :* * : * * *** : * : * * * * * ** * ** |
| : :* * : * * *** : * : * * * * * ** * ** |
| : * * :* * *** : * : * * * * * ** * ** |
2 ++..............**.......*.....*.*....*....*..******.*.............***.*........*.**.*.*.**..***.*.**..........++
| : * * * * * :* * * * * * : * * ** : * *** ** * *** ** : |
| : * * * * * :* * * * * * : ** * ** : * *** ** * *** ** : |
| :* * * * * :* * * * * * : ** * * * : * *** ** * *** ** : |
| * * * ** * :* ** * ** : ** * * * : * ** ** *** * * : |
| *: * *: ** * :* ** * ** : ** * * *: * ** ** *** * * : |
+ *+ * *+ ** * +* * * ** + * * * * *+ * ** ** *** * * + +
1 ++--+---+***-+---********+---+-**+*****--+---+*--*--**************+*-***---*****---**--**--***-*--*-+---+---+--++
01/01/15 02/01/15 03/01/15 04/01/15 05/01/15 06/01/15 07/01/15 08/01/15 09/01/15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment