annna-meme-atom-feed - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- annna-meme-atom-feed (424B) --- 1 #!/bin/sh 2 3 cd /home/annna/bin 4 5 list() { 6 git blame --since 3.weeks -p modules/hashtags/hashtags.txt | \ 7 LC_ALL=C awk -F '[ ]' ' 8 $1 == "committer-time" { 9 ts = $2; 10 } 11 /^ / { 12 memeline = substr($0, 2); 13 idx = index(memeline, " "); 14 if (idx) { 15 hashtag = substr(memeline, 1, idx); 16 url = substr(memeline, idx + 1); 17 print ts "\t" hashtag "\t" url; 18 } 19 } 20 ' | \ 21 sort -t ' ' -k1,1rn 22 } 23 24 view() { 25 list | sfeed_atom 26 } 27 28 "${1:-view}"