SinTan1729

joined 5 months ago
[–] SinTan1729@programming.dev 3 points 1 day ago* (last edited 1 day ago) (1 children)

শুনে ভালো লাগলো যে এটা কারো চোখে পড়েছে। নয়তো সবাইকে বোঝাতে হয় কি নাম, কেন নাম। আসলে বাঙালী প্রোগ্রামার খুব বেশি চিনি না।

I'm happy that you like it. Any kind of analytics or logging is decidedly against my stated policy for this project, so I won't be adding it. But I understand that some might need it, and in that case, one should look at more comprehensive solutions like YOURLS.

[–] SinTan1729@programming.dev 10 points 1 day ago

It's just a way to advertise, I think. I've found myself putting more trust in projects written in Rust or Go, than say, JavaScript.

[–] SinTan1729@programming.dev 4 points 1 day ago* (last edited 1 day ago) (1 children)

Hmm, so that might be out of scope here. But I can try to do some kind of 2FA, shouldn't be much of an issue, really. It's just that I never thought a link shortener needed 2FA protection since the links will be publicly shared anyway.

[–] SinTan1729@programming.dev 5 points 1 day ago* (last edited 1 day ago)

I don't understand much about OIDC either. But I'll keep it in mind. Thanks.

Unnecessary to me, I guess.

[–] SinTan1729@programming.dev 9 points 1 day ago* (last edited 1 day ago)

Thank you for the kind words.

Won't lie, the main reason that I stuck to a vanilla frontend approach is because I didn't know what else to do. I've never been a frontend dev, and never wish to be one. So I looked at an older project, and started by trying to replicate it. In hindsight, it was probably a good decision. The backend is more intentional though, and I do try to keep things simple and clean.

[–] SinTan1729@programming.dev 10 points 1 day ago* (last edited 1 day ago)

I'm already aware of a few small UI oddities. There were quite a few changes in the frontend, so I kind of expect these. Please let me know if you see anything weird. You can comment here, or open a bug report. I expect to do a patch release by tomorrow.

 

This release adds the ability to edit existing links, show and download QR codes for easy sharing, and various improvements in the frontend. Check out the release note for a list of all changes.

[–] SinTan1729@programming.dev 2 points 1 week ago

Well, it's statically typed, and it's memory safe. (There can be some race conditions during concurrent execution, but that's not relevant for simple scripts.)

[–] SinTan1729@programming.dev 3 points 2 weeks ago (3 children)

Agree, although I've recently replaced the python usecase with Go. Almost as easy to write, but much faster and safer.

[–] SinTan1729@programming.dev 3 points 2 weeks ago (6 children)

It's perfect for daily interactive use, but terrible for scripting. I write almost all my scripts in bash, the only exceptions being convenience scripts for fish itself.

[–] SinTan1729@programming.dev 3 points 2 weeks ago* (last edited 2 weeks ago)

My first ever distro was Xubuntu. (I did install Lubuntu before it, but found it too "ugly" so switched to Xubuntu after about 30 mins.)

I was still in high school, around 2014-15. My pc was getting old, and I read online that Linux can make your pc run faster. So, I decided to give it a try. I also read online that Xubuntu (and Lubuntu) is among the lightest of distros, so decided to install that. It was worthwhile, to say the least.

I currently use mostly EndeavourOS and AlmaLinux for my personal machines, depending on the type of the device. I have installed Fedora on my sister's laptop, and Debian Stable on my parents' PC, so I have to maintain those as well. Also, I have a few Pi zero2s for various things, so I use PiOS (or whatever it's called these days) from time to time.

 

It's mainly meant for episodes where TMDB doesn't have the information on release. I'm using it with a cronjob so that it keep trying until there's metadata available.

 

I simply want to emulate the effect of -p by default i.e. open all files in tabs when multiple files are supplied. I wrote the following autocommand to make it work.

-- Open files in tabs by default
vim.api.nvim_create_autocmd("VimEnter", {
    callback = function()
        if not vim.opt.diff:get() and #vim.fn.argv() > 1 then
            vim.cmd("tab sball")
            vim.cmd("tabfirst")
        end
    end,
})

But it seems to bork the colorscheme for all but the first tab. It's weird since Running the same commands manually after neovim is loaded works perfectly. I may have something to do with the order in which things are run. Is it possible to run this command as late as possible?

I'm open to alternative approaches that gets the job done.

 

I thought of this after a recent trip with some friends. We shared the photos when we were still in person. But sometimes we need to share a lot of photos over the internet. In the past, we have used a shared google drive directory for this. But I'd prefer a self-hosted option. There should be some sort of password protection as well (ideally per share, and no need for accounts). One should be able to both access the current files and upload new ones, just like google drive or dropbox.

I currently have FileShelter, which works for 1-to-1 sharing but not for groups. I guess something like ProjectSend would work, but it's too complex for my usecase. I'd prefer something more lightweight since I'll maybe use it once every few months. Also, it should be noob-friendly, and accessible using a browser.

Update: I'm very happy with copyparty. It does what I want, and much much more. I even replaced my older webdav server with it since it provides more granular control over share locations and permissions. Kudos to the developer @tripflag@lemmy.world!

 

A simple selfhosted URL shortener with no unnecessary features. Simplicity and speed are the main foci of this project. The docker image is ~6 MB (compressed), and it uses <5 MB of RAM under regular use.

view more: next ›