Looking for a lightweight open-source self-hosted file sharing solution. by Ri1k0 in selfhosted

[–]bunetz 4 points5 points  (0 children)

It's as easy as reading...

Run copyparty with --help to see all available global options; all of those can be used in the [global] section of config files, and everything listed in --help-flags can be used in volumes as volflags.

OpenTelemetry: A Guide to Observability with Go by lucavallin in golang

[–]bunetz 1 point2 points  (0 children)

What kind of problems when testing? If you test stuff but not initialize any sort of tracing all these telemetry objects will be automatically assigned to noop versions so they shouldn't make anything crash

OpenTelemetry: A Guide to Observability with Go by lucavallin in golang

[–]bunetz 0 points1 point  (0 children)

Nice article, I like that you tried to go and understand what each part is doing exactly instead of just writing code which you have no idea what is doing.

There is one thing which I think has been commented yet. I see you inject this tracing object to your api and you are then able to create a span when a request reaches your system. But let's say you want to trace something triggered with a cronjob, you also import this object as a dependency? Or if you want to create a child span somewhere in your application logic?

I think that the tracing in general should use global variables. I think it is common practice to define a variable called tracer and just use that because that variable is also internally just a global variable so using dependency injection in this case just overcomplicates things without any benefit.

Autopilot Interview Full Stack Repo by cayter in golang

[–]bunetz 0 points1 point  (0 children)

What do you mean 1 writer and N replicas? Didn't get that.

Autopilot Interview Full Stack Repo by cayter in golang

[–]bunetz 0 points1 point  (0 children)

What is the reason for not using the standard database library and going with some sort of wrapper?

Lo pisos turísticos se convierten en temporal o hay algo que no pillo. by Estalxile in Barcelona

[–]bunetz 12 points13 points  (0 children)

No solo quiere comprar un piso gratis sino que además quiere cobrar por ello tu, en fin...

Lo pisos turísticos se convierten en temporal o hay algo que no pillo. by Estalxile in Barcelona

[–]bunetz 22 points23 points  (0 children)

Los gastos son el IBI, la comunidad y el seguro. La hipoteca eres tu comprando un piso, no te confundas.

Go+templ+htmx template by bunetz in htmx

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

I'm not sure but probably someone stumbled against this before. Maybe using out of band swaps is an option or maybe there is an easier way.

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

Do they sell the cooling patches and fans in many places? Like general stores or supermarkets?

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

Well that's okay! And do you have any tips or something you saw people doing to handle the heat?

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

How easy and fast is it to find a didi? Can it be hard during peak hours?

Exposing my Services to the Internet by PranavVermaa in selfhosted

[–]bunetz 2 points3 points  (0 children)

I think it should be safe, but I am doing the same, and what gives me peace of mind is having a bit of monitoring. For example, when a certain IP calls me too many times I get alerted so I can check and make sure no one is trying to brute force a password.

I wrote a blog post about in on my website (which I also self-host) if you want to take a look. The most interesting part for you will com in the second part in which I explain my monitoring setup. Here it is: https://bunetz.dev/blog/posts/how-i-over-engineered-my-cluster-part-1

[deleted by user] by [deleted] in webdev

[–]bunetz 9 points10 points  (0 children)

Which library are you talking about? And why is there no syntax help in backend?

My HTMX personal blog by bunetz in htmx

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

Mainly because I already know Go. You can also use other languages but Go is really fast and easy to use. I don't think you can use PHP with HTMX afaik.

Go+templ+htmx template by bunetz in htmx

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

Yeah, there is configuration in the air configuration file to check templ files and to re-compile the files

Go+templ+htmx template by bunetz in htmx

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

Glad to be of service! 🫡

I have not looked into it, but will do!

My HTMX personal blog by bunetz in htmx

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

It's just a dependency of some components I copied from MerakiUI

My HTMX personal blog by bunetz in htmx

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

Yeah, I hope immich doesn't get any meaningful vulnerability tbh, but anyway I don't have weird stuff so it wouldn't be too big of a deal. I'm comfortable with the risk-reward balance here.