soc.octade.net is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
In the #shell #functions I should have written years ago category...
function fedilinktousername {
grep -oE 'https?://[^/]+/@[^/ ]+' |sed -E 's|https?://|@|; s|/@|@|; s/(@[^@]*)(@[^@]*)/\2\1/'
}
function fediusernametolink {
grep -oE '(@[^@ ]+){2}' |sed -E 's|(@[^@ ]+)@([^@ ]+)|https://\2/\1|'
}
rld@Intrepid:~$ clipo
https://polymaths.social/@rl_dane/statuses/01KVJCAG6Y4C1KTGBDBECH2778
rld@Intrepid:~$ clipo |fedilinktousername
@rl_dane@polymaths.social
rld@Intrepid:~$ clipo |fedilinktousername |fediusernametolink
https://polymaths.social/@rl_dane
rld@Intrepid:~$
🍵
boostedAre you a #Zig coder and #Vim user?
I've been trying to steer clear from LSPs when developing Zig and wanting to use ctags instead. But there are two issues with this:
1) ctags doesn't natively support Zig symbols; and
2) I miss being able to go-to-definition for Zig builtin functions and the std lib
https://codeberg.org/hgrsd/ztags is a simple tool (in bash) that solves this.
It bundles a Zig ctags grammar and automatically fetches the Zig source, generates tags for it, and then appends it to your project's tags so you can navigate freely between your project's symbols and Zig's stdlib code.
Hope this might be useful for some other Zig devs too. Please boost if you'd like, so that they might see it :)
The mistake you maybe making is that you consider Firefox to be a browser.
A browser doesn't need hundreds and hundreds of Engineers to be maintained, a massive project with multiple use angles and cases does
Firefox does so many (bad) things you can almost consider it a mini operating system
A alpha level Operating System, riddled with security bugs
It's always fantastic to be able to go somewhere in dillo and just have fun, amazing yourself with a speed that pages load
Seriously, why didn't I put this in my ~/.bashrc like... YEARS ago? 😆
year=$( date +%Y)
month=$(date +%m)
day=$( date +%d)
So I DO love me some python, but I just want to say that #Bash is awesome.
I had no idea this was a thing:
echo "${variable/$inTheString/$replacesIt}"