Log
I had a little whim, wanted to import all the toots from #mastodon tagged as #micropost in my web (a static site generated by #hugo #go #golang).
It was a perfect excuse to practice a bit of #rust and enjoy all the little lessons I've learned.
I doubt it will be helpful to anyone but just in case I've published the repo:
https://git.oscarmlage.com/oscarmlage/masto-rss
I know there is quite room for improvement but feel free to give some feedback ;)
🦀
I've read you can use #cicd with #gitea too via #drone (and also #jenkins works). It may probably be worth giving it a try.
https://dev.to/ruanbekker/self-hosted-cicd-with-gitea-and-drone-ci-200l
I think I've said it before, but I'm totally **in love** with #gitlab #cicd procedure, even being a yml-based thing
❤️ #micropost
In software engineering, #rubberduck debugging (or #rubberducking) is a method of debugging code by articulating a problem in spoken or written natural language.
The name is a reference to a story in the book «The Pragmatic Programmer» in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck.
🔈🦆 #micropost
The #rust solution with buggy / outdated #crates:
Package versions can’t be deleted, they can only be yanked. A yanked package can still be used if it is in your project’s lock file so existing projects will not break.
But new projects can not use a buggy version, #cargo will display an error and advise an upgrade. Backwards compatibility without compromising new features.
The other day a friend of mine asked if I'd noted some problem or high load in our little #mastodon instance. I said no, but then I took a look at #sidekiq, and it seemed that -definitely- something was occurring in the background.
This instance has been installed on 2022-05-26 in a little server, on 2022-09-09 it was migrated to v.3.5.3 and on 2022-09-24 I've bought a new -bigger- server.
- Media storage: 30Gb.
- Postgres storage: 400Mb.
- Redis storage: 20Mb.
That's the toy. #micropost
After some tries with #golang and #rust, I've opted to have some fun with #python too.
And there it is, the script that picks all the "#micropost" toots and converts them into the proper markdown thing for my #hugo web, media elements are also included.
Not sure if it can be helpful out there but...
https://gist.github.com/oscarmlage/bfe9adabad3c2679cb00935f3922ad96
note: it's a pity that #gitea doesn't have a snippets section.