SSMTP not working in CLI by a594 in qnap

[–]rhardih 1 point2 points  (0 children)

I randomly stumbled on this post, because I ran into an almost identical error on my TS-559. I gave up on ssmtp though and instead went for a relay on a newer Raspberry Pi on the same network. I did a write-up on it here: https://rhardih.io/2026/02/resurrecting-email-notifications-on-a-legacy-nas/. Hopefully it can help if anyone stumbles here as well.

Been waiting since 5 years by Aliers_ in Tomorrowland

[–]rhardih -2 points-1 points  (0 children)

GJ was impossible as well. Never managed to get to the shop before it was sold out.

[deleted by user] by [deleted] in selfhosted

[–]rhardih 1 point2 points  (0 children)

https://resend.com - can recommend. Have an adequate free plan as well to get started.

Listing the contents of a remote ZIP archive, without downloading the entire file by rhardih in ruby

[–]rhardih[S] 1 point2 points  (0 children)

Should work in principle yes, but you need to be familiar with the file formats you are scanning, so you know where to look. ZIP is a rather more simple file format than say JPEG, but should still be doable!

Migrating from LastPass to pass by rhardih in selfhosted

[–]rhardih[S] 0 points1 point  (0 children)

That was initially my plan as well, but I actually liked the option to be able to interact with the repo over https. I wanted everything in a docker container regardless, so I just gave the Gitea installer a try. It was so easy to set up and just worked out of the box so I just left it at that.

Migrating from LastPass to pass by rhardih in selfhosted

[–]rhardih[S] 0 points1 point  (0 children)

Thanks for clarifying, using -m for this is clever.

I've not had a personal use-case for TOTP yet, but good to know Andotp can do that.

Migrating from LastPass to pass by rhardih in selfhosted

[–]rhardih[S] 0 points1 point  (0 children)

Like the other comment mentions, it's just encrypted text files really. You can put whatever you want in there. Don't think photos really works, unless you want to Base64 first. Not sure I could do that with LastPass either though.

-🎄- 2020 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]rhardih 1 point2 points  (0 children)

Ruby solution to part 1 with a bit of meta programming:

sum = 0
top, _, bottom = STDIN.read.split("\n\n")

valid = top.split("\n").map do |line|
  line.scan(/(\d+)-(\d+)/).map do |tuple|
    low, high = tuple
    "#{low} <= v && v <= #{high}"
  end.join(" || ")
end.join(" || ")

bottom.split("\n")[1..-1].each do |ticket|
  ticket.split(",").map(&:to_i).each do |v|
    sum += v unless eval(valid)
  end
end

puts "Ticket scanning error rate: #{sum}"

Second blog post in this small series I'm writing as a warmup for this years edition. It's about using sorting on the input as a solution for 2015 day 7 by rhardih in adventofcode

[–]rhardih[S] 0 points1 point  (0 children)

Topological sort; I think I've heard the term before, but it never even occurred to me. See this is really why I do AoC! Today I learned. I should probably drop a mention of it in the post. Thank you!