Snippets
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.
Snippet of the week
- rec-keep.sh
keep a rec recording for good: its gif and .cast copied to your own page before it expires
languages Bash Text only Python text HTML
tags #sh #runv #python #config #irc #ntfy #web #gemini #bash #calendar #feeds #git #id #ssh #tmux #backup #bashrc #blog #bot #dav #finger #gopher #guestbook #howto #html #irssi #jq #mail #mutt #net #phone #pics #privacy #quota #radio #rec #ring #rsync #senpai #shell #systemd #twtxt #weechat
people pablo
- blog-to-gemlog.sh
your latest blog post, copied to your gemlog as gemtext and linked from its index - bot-manners.py
a Sopel plugin with good manners for your runv bot: speaks when spoken to, never floods - cal-today.py
what's on at runv.club today, and what's next, from cal.runv.club - feeds-cli.py
your unread feeds in the terminal, and mark them read, from feeds.runv.club - feeds-phone.txt
feeds.runv.club in a phone app (Read You, FeedMe, Capy Reader, Reeder...), step by step - git-publish.sh
keep ~/public_html in a git repository, and have it go up by itself after every push - guestbook-ping.sh
a ping on your phone when a note is waiting in your guestbook - khal-vdirsyncer.txt
on your computer: your dav.runv.club calendars in the terminal with khal, synced with your phone - motd-mine.sh
your own hello when you log in: the time where you are, your mail, the radio, today on runv, your guestbook - muttrc.txt
a ready ~/.muttrc for you@runv.club: read, write, reply, all from the shell - pics-shrink.sh
on your computer: photos made small and stripped of GPS and camera data, then sent to your gallery - quota-watch.sh
a ping on your phone when you pass 80% of your disk quota, and what's taking the space - radio-np.sh
what's on the runv radio right now, in one line, for tmux or your prompt - rec-keep.sh
keep a rec recording for good: its gif and .cast copied to your own page before it expires - ring-check.sh
is your page on the runv ring done right? checks ~/.ring, the ring's list and the links on your page - twtxt-mentions.py
who mentioned you on twtxt: every member's twtxt.txt and everyone you follow with tw - gophermap-starter
a menu for your gopher hole, with your blog, profile and web page, and how the lines work - index-starter.gmi
a front page for your gemini capsule, with your blog, now page, gemlog and profile - irssi-bouncer.txt
irssi on the runv bouncer: paste these one by one, with your name and token - page-starter.html
a first page for ~/public_html, with your status, blog, profile, guestbook and the webring - plan-refresh.py
keeps your ~/.plan, what finger shows, up to date: your last status, your now page, your latest post - remind.sh
a reminder on your phone later, with nothing left running here: remind.sh 25m "take the tea out" - runv-local.sh
on your computer: code to pb, a post to your blog, photos to your gallery, a status, one command each - senpai-bouncer.txt
senpai on the runv bouncer, reading your token from its file: save as ~/.config/senpai/senpai.scfg - backup-pull.sh
on your own computer: a dated copy of your runv things, and unchanged files take no extra space - bashrc-bits.sh
small things for ~/.bashrc: mkcd, up, bak, extract and a prompt that shows your git branch - daily-timer.txt
run a script of yours every day with a systemd timer: it runs even when you're logged out - gemlog-new.sh
a new gemlog post, dated and linked from your gemlog's index, then your editor - id-feed.sh
what everyone with a profile on id.runv.club has been up to, in your terminal - ntfy-done.sh
run something long and get a ping on your phone when it ends - ssh-config.txt
on your computer, in ~/.ssh/config: "ssh runv" instead of the whole thing, instant second logins, and git.runv.club - who-awake.py
who at runv.club is awake right now, by the time zones on id.runv.club - port-check.sh
is a port open? port-check.sh HOST PORT - tmux.conf
a friendlier tmux: mouse, splits that keep the folder, a quick reload - unix-socket-app.py
a tiny web app on your runv.sh address, through the socket - weechat-bouncer.txt
weechat on the runv bouncer: paste these one by one, with your name and token