~hedy/rtc-scripts

tiny collection of shell scripts for rawtext.club
2 years ago

codesoap via inbox

2 years ago

#~hedy's rtc-scripts

My tiny collection of scripts for rawtext.club programs and things.

#online

list users who are idle for less than a minute and what they are up to.

I have a online-alt because on some systems the column numbers differ. not sure why w is inconsistent

$ online
NAME      IDLE   WHAT
----      ----   ----
hedy      3.00s  bash /home/hedy/bin/online
gazuli    35.00s lynx https://en.wikipedia.org/wiki/Tools_for_Conviviality

$ online --help
Usage:  online [--help] [-c | -h | -t]

This script looks at the output of w(1) and prints users
who are idle for less than a minute.

  -c      Count the number of users instad of listing them
  -h      Don't print header
  -t      Don't show output as a table
  --help  print this help

That's it, lol

#recent

wrapper around ~samhunter/bin/recent.py that shows updates since last check.

modified from ~isti, see recent for modify info.

$ recent
2021-09-14 06:10 gemini               left_adjoint
2021-09-14 03:41 gemini               sloum
2021-09-14 01:52 gemini               mieum
2021-09-14 00:44 shlog                sloum
2021-09-13 22:26 gab                  robert588
2021-09-13 21:40 shlog                ben23
2021-09-13 21:05 gemini               oxymoronist
2021-09-13 21:00 web                  famubu
2021-09-13 20:01 gab                  left_adjoint
2021-09-13 18:16 gab                  samhunter
2021-09-13 16:42 gab                  sloum

$ recent --compatible | head -n20
# you get the idea ;P, it calls recent++

#gitea-updates

modified from ~samhunter's newgit script

it shows repos that are recently updated on a gitea instance (defaults to git.rawtext.club)

$ gitea-updates
   Updated 22 seconds ago                     hedy / rtc-scripts
   Updated 1 day ago                    slope-lang / slope
   Updated 1 day ago                    slope-lang / slp
   Updated 1 day ago                    slope-lang / slope-vim-syntax
   Updated 1 day ago                    slope-lang / slope-software
   Updated 1 day ago                    slope-lang / slope-nano-syntax
   Updated 3 days ago                        sloum / ini
   Updated 3 days ago                        sloum / flag
   Updated 3 days ago                   slope-lang / packages
   Updated 6 days ago                    samhunter / rtc-shell-scripts
   Updated 6 days ago                    samhunter / slope
   Updated 6 days ago                         hedy / slope

$ gitea-updates https://tildegit.org
   Updated 20 minutes ago                      aru / spacemacs.d
   Updated 4 hours ago                       ayham / tilde
   Updated 4 hours ago            FediverseMirrors / misskey
   Updated 5 hours ago               contrapunctus / dotemacs
   Updated 7 hours ago               contrapunctus / songs-of-travel
   Updated 13 hours ago                     Termux / termux-packages
   Updated 16 hours ago           FediverseMirrors / zap
   Updated 16 hours ago                        ben / chatsharp
   Updated 18 hours ago                        GRU / orsh
   Updated 18 hours ago                     forero / dotfiles
   Updated 18 hours ago                 tildeverse / site
   Updated 19 hours ago                 tildeverse / tilde.chat
   Updated 19 hours ago           FediverseMirrors / lemmy
   Updated 19 hours ago                 tilderadio / site
   Updated 20 hours ago                   zinricky / site
   Updated 20 hours ago                     chrono / joelchrono12.ml
   Updated 21 hours ago                      stack / stack
   Updated 21 hours ago                    tobraha / dotfiles

$ gitea-updates --help
Usage: gitea-updates [ --help | --version | <gitea instance url> ]

Example:
  Updates on git.rawtext.club:
    gitea-updates
  Updates on tildegit:
    gitea-updates https://tildegit.org


Sorry about modifying other people's scripts, different people have different tastes and likings and I do love adapting existing things to learn them etc :D

#License

MIT