# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 2159
# self = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=1759
# next = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=1859
# prev = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=1659
Ok, added social media sharing buttons to https://mkws.sh/ š Please take a look! š
@prologic Must be something related to headers, compression, size.
@eldersnake\n\n> I hope that made some sort of sense, Iām tired and close to bed\n\nWould be nice it made sense.
> The fundamental problem with vi is that it doesn't have a mouse and therefore you've got all these commands.\n\nBill Joy - vi
author
Hmmm... is this thing on?
> Twenty years ago, you expected a phone to be provided everywhere you went, and that phone worked the same everywhere. At a friend's house, or a restaurant, or a hotel, or a pay phone, you could pick up the receiver and make a call. You didn't carry a phone around with you;
Ok, gotta get access to a macOS machine, let's see.
@prologic So if I build via Homebrew, I don't need to sign it?
@prologic But as I said, I'd rather distribute it via the web site, as a simple download, rather then Homebrew.
@prologic So to sign my binaries I'm required to sign up for a Developer ID?
@stutteringsteve I don't believe in _shoulds_ but simplicity and minimalist suit me well.
@lyse I asked her if she could donate a set of those icons so I can use them on the https://mkws.sh web site. They cost $23.
@eldersnake I agree it's highly subjective when it comes to syntactic improvement.
$ go version\n go version go1.17 openbsd/amd64\n $ gmake\n Checking Go version ... [ ERR ]
Go 1.17 is required, found go1.17\n FATAL: š preflight failed\n gmake: *** [Makefile:13: preflight] Error 1***
@prologic It doesn't detect my go
version properly.
@prologic What's with the preflight.sh
script?
@quark How did you find out about yarn?
@mckinley Did you checkout the new templates?
@quark @prologic \n\n> Hopefully this URL change fixes things\n\nWould be nice it does.
@prologic It's a good idea to. I have to compile Go first.
I'm getting a lot of follow messages from @eldersnake's pods.
@prologic I'm aware only about the ones listed on the web site.
So I can't follow eldersnake@we.loveprivacy.club and @eldersnake from the UI?
@laz @fastidious \n\n> I need to learn how to do that\n\nWould be nice if! š
@prologic vm was stuck, have no idea why and how.
@laz Nice customization on tt.vltra.plus!
@eldersnake I'm not that great with it either, but until now I realized how powerful it is.
@adi @mckinley Define t
where f
is defined or pass. Also you can pass f
to pp
in the same function to get the links the template.
@mckinley Ok, new thread, you can pass parameters to pp
in the rs
function to get the title and the filename in the twst
list:\n\n function r(ts, t, f) {\n cmd = sprintf("pp twts.upphtml %s > \\"%s\\"",t,f)\n print ts | cmd\n close(cmd)\n }=
@mckinley You don't have to sanitize the twt
, in pp
you are required to sanitized template strings not variable values. You can just output unsanitezed, it's safe.
@mckinley (#u4bhkvq) It's just a rough version, the awk
script is ok, you can customized it further (add the corect dates and format it as you prefer). smu is https://github.com/gottox/smu, that awk
piece outputs Markdown
, better just output HTML
and remove smu
.
@mckinley @prologic \n\n> although that one completely broke the script and mangled the output.\n\nI assumed all lines start with a date, so lines starting with '#' break the script. You're required to delete those lines.
@mckinley You don't need help, I believe you could have done it yourself. š
@adi @mckinley Run it with pp index.upphtml < twtxt.txt > index.html
@mckinley \n\n> I should learn awk at some point\n\nI recommend it!
@mckinley Haha @ GNU tail
, maybe they're right.
@adi @mckinley I'm pretty close to actually generating the pages.
@mckinley Could be better, but this is an awk
job. I'm also learning.
I also had 2 minor colds in this period, but I'm fine now. I'm vaccinated. Didn't take any test.
Would be nice if yarnd
suported custom paths for the twtxt.txt
file.