@bender@twtxt.net here:
FROM golang:alpine as builder
ARG version
ENV HTWTXT_VERSION=$version
WORKDIR $GOPATH/pkg/
RUN wget -O htwtxt.tar.gz https://github.com/plomlompom/htwtxt/archive/refs/tags/${HTWTXT_VERSION}.tar.gz
RUN tar xf htwtxt.tar.gz && cd htwtxt-${HTWTXT_VERSION} && go mod init htwtxt && go mod tidy && go install htwtxt
FROM alpine
ARG version
ENV HTWTXT_VERSION=$version
RUN mkdir -p /srv/htwtxt
COPY --from=builder /go/bin/htwtxt /usr/bin/
COPY --from=builder /go/pkg/htwtxt-${HTWTXT_VERSION}/templates/* /srv/htwtxt/templates/
WORKDIR /srv/htwtxt
VOLUME /srv/htwtxt
EXPOSE 8000
ENTRYPOINT ["htwtxt", "-dir", "/srv/htwtxt", "-templates", "/srv/htwtxt/templates"]
Don’t forget the --build-arg version="1.0.7"
for example when building this one, although there isn’t much difference between the couple last versions.
P.S: I may have effed up changing htwtxt’s files directory to /srv/htwtxt
when the command itself defaults to /root/htwtxt
so you’ll have to throw in a -dir whenever you issue an htwtxt command (i.e: htwtxt -adduser somename:somepwd -dir /srv/htwtxt
… etc)
@bender@twtxt.net I built my own, a much smaller one with a multi stage build… shouldn’t that do the trick? 🤔
@doesnm@doesnm.p.psf.lt I tried to go install github.com/plomlompom/htwtxt@1.0.7
as well as
# this is snippet from what I used for the Dockerfile but I guess it should work just fine.
cd ~/go/pkg && wget -O htwtxt.tar.gz https://github.com/plomlompom/htwtxt/archive/refs/tags/1.0.7.tar.gz
tar xf htwtxt.tar.gz && cd htwtxt-1.0.7 && go mod init htwtxt && go mod tidy && go install htwtxt
both worked just fine…
@movq@www.uninformativ.de been getting so sloppy my feed is slowly turning into a fox nursery, I might end up renaming it into nature-reserve.txt
@bender@twtxt.net highly probably, unless I learn go and implement it myself (or someone else more capable does) … but I’m so lazy I’d just copy them from twtxt.net and call it a day xD and yeah, it’s kinda rough the way things are…
- I don’t see a way to follow others, all I can do is go to the /feeds URI for a list of the server’s users/feeds.
- I still couldn’t figure out how to get a direct link to a user’s twtxt file, curling /feeds/usernick spits out a list of the user usernick twts, so I guess you could use that to follow them.
- no way to add in your
# nick = usernick
/# url = proto://domain.ltd/path/to/twtxt.txt
…etc. Probably because that wasn’t part of the spec back then?
So yeah, it would make for a nice project while learning Go. :P
@lyse@lyse.isobeef.org I don’t see a single reply on that feed. Looks like a one way kind of feed to me, but I might be wrong.
@bender@twtxt.net Yep! Twtxt spec by the letter I guess 🥲
I’m getting way too comfortable with editing twts and fixing Eff’ ups… I gotta stop auto-syncing my twtxt file, at least I’ll have a breathing room for quick fixes when needed. I know, Michael Lucas might not approve of this but, I wouldn’t want the @yarn_police@twtxt.net in the middle of the night, right?
Alright, I gave #htwtxt container a quick spin. The thing lives and feels dead simple, like, echo -e “date -Im
\tHello world!” >> twtxt.txt kind of simple but with a GUI. and I LOVE IT! Now let’s see if we can rebuild the image with the latest version of htwtxt.
@movq@www.uninformativ.de Her maiden name is Raider.
@bender@twtxt.net + a 9 years old container image by the good ol’ buckket himself … not sure what to expect from that but will give it a quick spin and report back
@bender@twtxt.net I kinda fixed it, but there’s still a hell lot more than that still waiting to be fixed 😅
@bender@twtxt.net Aye Aye, Captain 🫡
@bender@twtxt.net 😆 Would calling it a Single user Twtxt "Yarn Pod **Like**" software
help you sleep better at night? And just in case things are not clear here, I’m being sarcastic (well, kinda…) and not trying to gaslight anyone. Think of my comment as Bromance or something like that LOL.
But seriously, Just like any UNIX-Like system to Unix™, as in non of them are UNIX™, but each of them is providing more or less similar experience and re-implementing what once was parts of “UNIX™ software” their own (more or less better) ways. Timeline is Yarn™ Pod like, (my personal take on the word pod is: “an instance of XYZ software acting an escape POD from X-BS for… ABC reasons.”) providing more or less of a similar experience, implementing some of Yarn.social Extensions, trying to add in some more …etc.
Otherwise, I don’t see the Yarn pod
mention as some kind of malicious manoeuvre, but more of a tribute to what (might have) sparked inspiration for creating Timeline? Also, our friend @sorenpeter@darch.dk here has got a valid reason for using PHP (#tms7aka) so let’s let’s put our unease towards the language itself aside and maybe just help however/as much as we can in order to make internet (the World?) a better place.
@lyse@lyse.isobeef.org excellent way to poke a sleepy (not sleeping) feed! :-)
@mckinley@mckinley.cc Regarding https://mckinley.cc/notes/20241120-css3-announcement.xhtml, I’m wondering why you support viewing your website on a printer? :-)
@bender@twtxt.net Oohh, I see! :-D
@xuu@txt.sour.is I don’t understand. Apart from the sentence being incomplete, what’s “EF”?
@bender@twtxt.net The tagline of Timeline is “a single user twtxt/yarn pod” not just a yarn pod. Similar to GNU/Linux. When we came up with the concept of Yarn Social it was a way to rebrand twtxt with the extensions that makes conversations like this possible.
@doesnm@doesnm.p.psf.lt never!
@bender@twtxt.net hmm.. indeed.
@bender@twtxt.net the EF this feed is muted. Why is yarn busted? 😁 @lyse@lyse.isobeef.org @prologic@twtxt.net
@bender@twtxt.net … a Twtxt Pod then 🤷
@bender@twtxt.net Haha! I assume you can’t see the original twt, let me quote for you so you know what I’m responding to:
2024-11-20T07:56:00-06:00 (#gjhq2xq) Hey! I tried running Timeline on my server with the default PHP version (8.3) and it’s giving me a few errors https://eapl.me/timeline/ I should be sending a PR soon to fix it ;)
source: eaplme’s twtxt file.
@aelaraji@aelaraji.com icons at the top are badly organised while on mobile. About the speed, that’s using a shoddy PHP code, it would be slow even when running in a quantum computer. :’-D
@movq@www.uninformativ.de Yesterday, it was relatively nice at 11°C or so. Very windy and completely gray, though. Today, the sun was out at roughly just 5°C. The colors glowed much more in reality than in the photos: https://lyse.isobeef.org/morgensonne-2024-11-20/
I finally changed the broken gear shift bowden cable of my bicycle in a longer lunch break.
@eapl.me@eapl.me adding public $timestamp;
to the class Twt
in libs/twtxt.php (line 25) fixed that for me but probably broken something else 😅 …
@bender@twtxt.net @movq@www.uninformativ.de exactly! 😂 I accidentally duplicated a twt and deleted it as fast as I can, hoping nobody pulled the feed by then.
undefined array keys
and creation of dynamic properties being deprecated
(CC: @sorenpeter )
@bender@twtxt.net > which feed of his are you following? the .mx or the .me one? I was replaying to THIS TWT
@eapl.me@eapl.me Yeah, that’s exactly why I’m asking. I’ve been having a couple of errors here and there even though I’m using PHP 8.2 … Mostly somethings about undefined array keys
and creation of dynamic properties being deprecated
(CC: @sorenpeter@darch.dk )
Great to see another user @aelaraji@aelaraji.com - And I can confirm that my #webmentions works from your server (I know, the formatting is messed up;)
Hey @aelaraji@aelaraji.com I’m running PHP 8.2 on my server
@prologic@twtxt.net Not much Other than playing around with @soren@darch.dk ’s Timeline … it’s been quite fun so far. (I’m twting from there by the way 😁)
Hey @sorenpeter@darch.dk what version of PHP do you run Timeline on?
@bender@twtxt.net So turns out something is setting my HashingURI to the value {{ .Profile.URI }}
and that is making my hashes wrong so it cannot delete or edit twts.
@xuu@txt.sour.is 12345?
@prologic@twtxt.net Cheers, mate, just saw this reply so thank you. And hope you are feeling better now!
I agree with what you say too. The whole thing is just an odd approach and can’t possibly be effective, all the while causing inconveniences or at worst, being plain weird and invasive like ID verification.
@bender@twtxt.net My made-up rule is to keep at least three full months in the main feed and when rotating, I create one feed per month.
@doesnm@doesnm.p.psf.lt There is no real recommendation I think. But if you hit half a MiB or so, it might be worth considering to rotate in order to keep the network traffic low. People with bad connectivitiy might appreciate it. I want to implement HTTP range requests in my client rewrite at some point in time (but first, it has to become kinda usable, though).
@sorenpeter@darch.dk @movq@www.uninformativ.de Hell yeah, this is awesome! :-)
@doesnm@doesnm.p.psf.lt up to you. I have mine to rotate at 1,000 twtxts. I have vomited over 400, so far. I have some way to go till rotation. :-D
@movq@www.uninformativ.de I knew you would like it;)
@prologic@twtxt.net yes, web content indeed is/has become. I will say a little bit of both. Trying my best not to lose faith in humanity. :‘-/
@prologic@twtxt.net Hahaha! :‘-D
@movq@www.uninformativ.de @bender@twtxt.net Right, sooo strange. :-D But it worked, they managed to make me talk about that. Damn.
@movq@www.uninformativ.de @prologic@twtxt.net Thank you! Yeah, the evening (and also morning) sun creates an absolutely great light. I really love it, it never gets old.
@movq@www.uninformativ.de When looking closely in the woods, I can spot ants that are sized the width of a finger. Soldier ants are also often larger than the workers they protect. But yeah, most ants in our regions are relatively small. :-)
@prologic@twtxt.net @bender@twtxt.net I can’t make it, we tidy up our scout yard.