-- Leo's gemini proxy

-- Connecting to gemini.techrights.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

● 11.06.21


Gemini version available ♊︎


●● Reading Concise IRC Logs of Techrights in (Almost) Real Time From the Command Line


Posted in Site News at 10:19 am by Dr. Roy Schestowitz


Video download link | md5sum 98e0fbb9686d5cd46fd09bb149f06622


↺ Video download link


http://techrights.org/videos/filtered-irc-cli-techrights.webm


Summary: To make it possible to follow all the Techrights IRC channels from the command line throughout the day we share some shell scripts that I personally use (to keep myself abreast of what goes on)


JUST A FEW months ago we explained How to Follow All Our Channels (Interactively) From the Command Line and ways of Following Techrights IRC Channels From the Command Line (or the Web and Gemini). We continue to explore new ways of interacting with IRC, including over Gemini and with the command line (cURL and GNU wget as the Swiss army knives).


How to Follow All Our Channels (Interactively) From the Command Line

Following Techrights IRC Channels From the Command Line (or the Web and Gemini)

↺ cURL


In the video above I show some small and simple tools I developed for my own use and added/pushed to Git a few weeks ago (further changes days ago). All the programs are also available in git@techrights (under Desktop-Utils).


↺ git@techrights


Long story short, to get updates every 5 minutes for all channels (filtered, simplified):



watch --color -n 300 "wget -qO- http://techrights.org/irc-archives/irc-status.txt | tail -n 400 \

| cut -c18-135 | GREP_COLOR='01;36' grep --color=always 'techrights-news\|$' | grep -i --color=always 'schestowitz\|$' \

| grep -v ' / /' \

| sed 's/techrights-news/ TR/' \

| sed 's/schestowitz/ RS/' \

| uniq \

| sed 's/☞.*$//' \

| sed 's/•.*$//' \

| tail -n55 | grep -v 'Binary file'"


To get just the news from the main channel (the techrights-news bot):



watch --color -n 300 "wget -qO- http://techrights.org/irc-archives/irc-status.txt | tail -n 150 \

| cut -c18-100 \

| GREP_COLOR='01;36' grep --color=always 'techrights-news\|$' \

| grep -i --color=always 'schestowitz\|$' \

| grep -v ' / /' \

| grep techrights-news \

| uniq \

| perl -e 'print reverse <>' \

| sed 's/techrights-news/TR/' \

| sed 's/● NEWS ●/N/'"


On most modern distros of GNU/Linux all the required programs are probably available already. █


Share in other sites/networks: These icons link to social bookmarking sites where readers can share and discover new web pages.


Permalink > Image: Mail


 Send this to a friend


Permalink

↺ Send this to a friend



----------

Techrights

➮ Sharing is caring. Content is available under CC-BY-SA.

-- Response ended

-- Page fetched on Sun May 12 23:58:32 2024