|
3 months ago | |
---|---|---|
Makefile | 1 year ago | |
README.md | 12 months ago | |
recent++ | 3 months ago | |
recent++.1 | 11 months 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)
- local wiki (RTC)
- capitali$t scores (RTC)
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