

Yeah, but I could also use a shortener. It’s more ergonomic, easier to use, edit etc. Different tools exist for a reason.


Yeah, but I could also use a shortener. It’s more ergonomic, easier to use, edit etc. Different tools exist for a reason.


While I agree on principle, we’re not always using big-name websites. The argument falls short for some-local-blog.com, there’s no security improvement on clicking that link as opposed to shortener.tld/blog-link. I’d say we should trust the source of the link instead of the link itself. Link shortening can be useful if you want long links to look nice when sharing, or simply for personal use so that you don’t need to remember long links to access an internal resource. Or just for personal websites. I can link my CV at https://domain.tld/cv instead of the full PDF file path, for example.


Thanks. Filtering does not cover expiry, but it does cover shortlinks, longlinks, and notes. Making expiry work will make the filtering inefficient for little benefit, since the expiry times are stored as UNIX timestamps in the database.


I guess we now know what the n in nvim stands for.


Cloudflare may be enough, but you can also look at stuff like Anubis.


Just like everyone else, I’ll also recommend forgejo. But be prepared to handle bot traffic if you self-host it. My instance was hit almost constantly until I added strict rate limits, and made most of the stuff private. For a portfolio, I think Codeberg (or GitHub, that’s where everyone looks for stuff) is better that self-hosting. But it can be good to keep a private instance for mirrors.


Thanks. Hope you like it.


Thanks. Just a small correction. The API isn’t really REST, it’s REST-ish but probably closer to JSON-RPC.


Hope you like it.


That could be, but I don’t think that it should be relied upon. The shortener itself can execute malicious code, so that kind of security is, in my opinion, essentially theatre. I’d just say that don’t click on links that you don’t trust.
This project is for own use/use with friends/family/internally in an org etc., where trust isn’t an issue. Of course, I cannot stop anyone from using it in any other way that they see fit. It can help shorten annoying long links for ease of sharing, but that’s it.


I decided to migrate to zpack.nvim instead. Got to keep my old lazy config with minimal changes, and it works pretty great. I guess I just like the modular nature of my setup, and also I just went through a major rewrite last month, don’t wanna redo it just yet.


I’ve been thinking about moving away from nvim-treesitter for this. There seem to be some alternatives already, like tree-sitter-manager. Or I can probably just get it to work without any plugins.
The only thing that I’m worried about are the features provided by nvim-treesitter-textobjects. Has anyone been able to replicate those in native neovim, or even using some other plugin that’s not dependent on nvim-treesitter?
Edit: There seems to be some interesting recent development.


Just to add to it, there’s a thin wrapper around it called zpack that’s basically a drop-in replacement for lazy.
I’m not the dev, but I’ve migrated from lazy to it without much of a hassle, and the performance seems to be on par. I did encounter a bug, but the dev was quick to fix it. Just wanted to give them a shout-out.


Don’t use it myself (I don’t do much webdev), but this seems to do what you want.
Ah that makes sense. To be fair tho, there’s a lot of unwarranted hate towards Rust so it can be hard to tell.
I hope you’re joking. If anything, Rust makes error handling easier by returning them as values using the Result monad. As someone else pointed out, they literally used unwrap in their code, which basically means “panic if this ever returns error”. You don’t do this unless it’s impossible to handle the error inside the program, or if panicking is the behavior you want due to e.g. security reasons.
Even as an absolute amateur, whenever I post any Rust to the public, the first thing I do is get rid of unwrap as much as possible, unless I intentionally want the application to crash. Even then, I use expect instead of unwrap to have some logging. This is definitely the work of some underpaid intern.
Also, Python is sloooowwww.


I’m confused. What do you even mean?


It seems that I’d still need to modify net.ipv4.ip_unprivileged_port_start=80 in sysctl, which I don’t want to do. If I do it, the socket isn’t even strictly necessary.
OIDC was requested quite a few times. I finally understood the point when I started using it for my selfhosted apps lol. It can be very convenient.