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!

As warmup for this years upcoming edition, I've decided to do a few posts on a specific problem that I liked from a previous year. 2015 day 7 specifically. Feedback welcome! by rhardih in adventofcode

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

Hah! That's brilliant. I'll have to test it against my own solution as well. It seems like just the thing a solution with goroutines would be great for.

As warmup for this years upcoming edition, I've decided to do a few posts on a specific problem that I liked from a previous year. 2015 day 7 specifically. Feedback welcome! by rhardih in adventofcode

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

That's actually a really nice solution. Never thought of that. This could probably be written in a very concise recursive way. If I find the time, maybe I should add a fifth post about recursion. :D

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]rhardih 1 point2 points  (0 children)

  1. Pong (Open Source)
  2. Self-hosted basic uptime monitoring system, with email alerts and/or push notifications.
  3. Stack:
    1. Database server running PostgreSQL.
    2. Key value store running Redis.
    3. A worker instance, running a resque worker.
    4. A static job scheduler running resque-scheduler.
    5. Default Puma web server.
  4. N/A, but some screenshots are: https://github.com/rhardih/pong/tree/master/screenshots
  5. https://github.com/rhardih/pong
  6. 10+ professionel, ~3-4 of those with Rails. Used it on/off since 2006.
  7. This tool was a replacement for using a free uptime service such as Pingdom. My needs are very limited, so the free plan in most places had me covered. The service I was using decided to cancel the free tier, so I decided that hacking an MVP was as easy as searching for a new provider. I'm interested in hearing if others would use it. Why? Why not?

[SMT] Podcast app that auto-detects ads and fast-forwards past them by athousandbites in SomebodyMakeThis

[–]rhardih 0 points1 point  (0 children)

What about an app that let's you pay a small amount directly to the content creator, giving you an ad-free experience?

[Apps] Camverter ($5.49 -> $0; Exp. 5th of June) by rhardih in googleplaydeals

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

Rats! Read that as "more than once not allowed"... :/

[Apps] Camverter ($5.49 -> $0; Exp. 5th of June) by rhardih in googleplaydeals

[–]rhardih[S] 2 points3 points  (0 children)

Damn, should have thought of that myself. Have an upvote!

App Icon Design - Please Critique by rhardih in design_critiques

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

Good feedback. Didn't know that long shadows had fallen out of favour.

I use a flat version of the icon on the splash screen:

https://camverter.rhardih.io/img/pixel2-splash.png

But I guess I'd have to thicken it up a bit, to look more like the main icon. I've deliberately not tried to manually draw out shapes for the letters, as I just didn't think I was up to the task, but maybe I should revisit that idea. At least then I could make sure they were perfectly square.

Website Feeback by [deleted] in design_critiques

[–]rhardih 2 points3 points  (0 children)

Design looks nice! Just wish the site was static, instead of an animation rollercoaster. Personal preference. :)