recent++ - RTC services update notifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Sam Hunter 0f5443a898 Makefile and manual page added. 3 weeks ago
Makefile Makefile and manual page added. 3 weeks ago
README.md botany (a tilde.cafe service) added 2 months ago
recent++ Spartan changes added (tilde.cafe) 2 months ago
recent++.1 Makefile and manual page added. 3 weeks ago

README.md

recent++

Python rewrite of the venerable 'recent' utility for RTC

usage: recent++ [-h] [-c] [-e] [-m] [-u USER | -U USER] [-s SERVICE | -S SERVICE] [--since TIME]

optional arguments: -h, --help show this help message and exit -c, --compatible Emulates behaviour of the standard 'recent' -e, --exitcode Returns RC>1 if no changes since the last check. No display. -m, --mark Set 'read' marker to current time.

filtering: -u USER, --user USER Comma separated list of usernames to include in the report -U USER, --exclude-user USER Comma separated list of usernames to exclude in the report -s SERVICE, --service SERVICE Comma separated list of services to include in the report -S SERVICE, --exclude-service SERVICE Comma separated list of services to exclude in the report --since TIME Show items newer than TIME, provided in Unix time format

Supported services:

  • gab
    • channels
  • iris
  • linkulator
  • shlog
  • who-is
  • project
  • plan
  • oneliner
  • sl
  • train
  • web
  • gemini
  • gopher
  • library
  • cspc
  • gitbbs
  • poll
  • fortunes
  • email (only the emails of the current user)
  • botany (tilde.cafe)

Hacks

  • only the channels a user takes active part in discussions (ones where a respective $HOME/.gab-{channel} file exists) are displayed. To see activity in channels one only lurks in - create a dummy file Example for 'furry-hell' gab chat:
echo '1600000000|' > .gab-furry-hell

Timing

$ time /usr/local/bin/recent > /dev/null
real	0m1.333s
user	0m0.927s
sys	0m0.343s

$ time ~/bin/recent > /dev/null
real	0m1.024s
user	0m0.723s
sys	0m0.272s

$ time ~/bin/recent.py > /dev/null
real	0m0.239s
user	0m0.169s
sys	0m0.064s