← Pablo Murad

Note VI

Over two days I put thirty-six small snippets on runv.club/snippets, the club's shared drawer of code. None is longer than a screen, and all of them are about living on the server.

The top of the snippets page on runv.club, in a light serif layout. Links at the top read runv.club, snippets, how to add yours and on git, followed by the title Snippets and the line "Short bits of code from the people of runv.club, newest first. Each one lives in someone's ~/snippets. Type snip in the shell to add yours." A box marked "Snippet of the week" shows rec-keep.sh by pablo, in Bash: "keep a rec recording for good: its gif and .cast copied to your own page before it expires", with the tags #sh, #rec and #web.

The first batch, Twenty small snippets for life on runv, covers the basics: starter pages for the web, gemini and gopher, getting in from home with one ssh config, the chat through the bouncer, pings on the phone, timers and the shell. Sixteen more snippets fills in what the club still had nothing for: feeds, the calendar, the radio, mail, the guestbook, recordings and the ring.

Getting one takes a single command on the server:1

$ snip show pablo/who-awake.py
$ snip take pablo/who-awake.py
Source
$ snip show pablo/who-awake.py
$ snip take pablo/who-awake.py

show prints it in colour, and take copies it to ~/snippets with a line saying where it came from, ready to change and share back. Anyone on runv can add their own with snip add, and snip search looks through everyone's.

Notes

  1. Every snippet is also plain text at runv.club/snippets/pablo/NAME.txt, which is how the ones meant for a home computer come down, with a curl on that machine. ↩