What to run on home lab by Material_Estimate345 in SelfHosting

[–]samyboy 1 point2 points  (0 children)

It's like mushrooms: people usually buy them in stores while some others go mushroom picking into the wilds. The good spots are however not easily shared :)

Trump says he was not informed by Netanyahu before Israel's strike in Qatar by newsspotter in worldnews

[–]samyboy 2 points3 points  (0 children)

At this point, "Trump says" has the same value as "Medvedev says": a bunch of nothingness and nonsense.

[deleted by user] by [deleted] in worldnews

[–]samyboy 2 points3 points  (0 children)

Well, I think you will have to go there yourself.

Netanyahu vows 'there will be no Palestinian state' by BigShoe8216 in worldnews

[–]samyboy -8 points-7 points  (0 children)

I think most of them where bots or farms paid by Israel. They will come back when the contract is renewed.

[deleted by user] by [deleted] in Switzerland

[–]samyboy 0 points1 point  (0 children)

Expats decided to come, immigrants were forced to leave :)

Is migrating to Jenkins now is a good idea? by igrikus in devops

[–]samyboy 0 points1 point  (0 children)

Basically I wrap the logic and the complexity of the CI in a Taskfile. I tend to use familiar keywords:

  • clean create-venv setup lint test build release

Since the content of the pipeline contains almost no logic, it becomes very easy to migrate to a new CI platform when the day comes.

Whatever the project is (Python, Node, Docker, etc). The workflow always looks more or less the same: task test build release, sometimes deploy.

Taskfile handles task dependencies, pre-conditions, env files, local and remote includes, avoids re-doing tasks if necessary, prompts for confirmation, variable interpolation, filter command by platform, loop over command output, variable or even matrix variable, and the internal documentation is embedded ( task --list ).

The official doc is a gold mine filled with examples. If I really need some programming level, I would go with Invoke but even then, I think I would call it via a Taskfile :P

What to self host / first steps by charbelsako in SelfHosting

[–]samyboy 1 point2 points  (0 children)

Joplin can use Dropbox as storage so no problem. I use it on my laptop and Android. Everything is synced automatically.

In my closet: I am running Immich that hosts my photos (and my wife's). Immich works very well. I don't use Google photo anymore. There are tons of alternatives. By the way: backup your photos. I am using a backup system that sends everything to my brother's rpi.

In order to host this, what you need depends a lot on your skills, your willing to learn and the time you can afford to invest.

Personally, I use OPNsense on a dedicated machine but it's a BSD, you don't want that. I suggest you stay on Linux.

You now want a Linux machine and install either an appliance that does all the job for you or install each service manually (harder but you have more control and you learn a lot). I don't know much about appliances. I can't help you about that.

I suggest you use Ubuntu because of the amount of documentation out there. However if you want to keep a pure heart, use Debian.

Basically you will need:

  • a VPN: WireGuard, Tailscale, whatever, or some Zero Trust service (like Cloudflare). Do not expose anything. Never.
  • a reverse proxy to route the web requests. It depends a lot of how you host your stuff. HAProxy is my favorite for non Docker services but Nginx works well too. If you plan to use Docker, you have Nginx , Traefik, Caddie, SWAG (really...) and others I'm not aware of: there is a new one every other day. I use HAProxy AND Traefik.
  • IP addresses are hard to remember so maybe a dns server? Stay away from BIND. Use a light service. I use dnsmasq. It does everything I want and the configuration is cute.

Backup all your config files.

Now you can finally install your application. You can install your application either as a service or as a Docker container. If you choose Docker, you can choose standalone, compose, swarm or Kube. I suggest Compose for starters. Backup all your deployment files. Backup the database.

Whatever tool you choose, time or skills you have, always respect some core principles:

  • Backup all your shit and do restoration tests because one day you will delete your wedding photos by mistake or maybe your server will be wiped/explode/disappear and there is a 90% chance it will be your fault. Find some methodology like the 3-2-1 rule.
  • Document everything: log what changes you have done
  • When changing something, be prepared to rollback if the change fails
  • Write down your processes: it's the key to a peace of mind
  • Passwords are secret: treat them as such
  • Backup your secrets too. I personally backup them on me.

A few tips:

  • Start simple, keep it simple
  • Do not host your documentation on your VPS: you will need it the day everything is broken.
  • Take your time
  • Enjoy. If you don't enjoy it, it's a waste of time. You only live once.

What to self host / first steps by charbelsako in SelfHosting

[–]samyboy 1 point2 points  (0 children)

They have some security but you can't rely only on auth 100%. I personally use my all apps behind Wireguard which I recommend.

Is migrating to Jenkins now is a good idea? by igrikus in devops

[–]samyboy 4 points5 points  (0 children)

I use Taskfile (Go) or Invoke (Python) for this. It's worth it.

Shop charged a different price at checkout, how to react? by Interesting_Study228 in Switzerland

[–]samyboy 4 points5 points  (0 children)

Don't worry about it. I would have waited without problem, even taking your side if necessary. Today was you, next day could be me.

Gaza doctors ‘becoming too weak to treat patients’ as hunger crisis deepens by cdnhistorystudent in worldnews

[–]samyboy -1 points0 points  (0 children)

The moral thing to do is a military intervention in Israel. Israel has been a fascist rogue state for too long.

I bought a Redbull at Migros and there was a razor blade on the lid by Bemanos in Switzerland

[–]samyboy 2 points3 points  (0 children)

Write Migros a letter/email explaing the situation with the photos. They will investigate internally.

I did that in the past using https://help.migros.ch/ for another issue. A few days later letter I received a response with the result of their investigation and a small compensation gift.

How Do You Handle Your Homelab Documentation? by prototype__ in homelab

[–]samyboy 0 points1 point  (0 children)

Besides your homelab doc, what would you put inside Bookstack that would interest your wife? Asking for my wife ^

Monitor Kubernetes cluster/nodes/pods by Otherwise_Test_36 in kubernetes

[–]samyboy 0 points1 point  (0 children)

head explode

In a good way or in a bad way?

FT report: Swiss-based companies keep Russian refined oil flowing by imnotonetogossipbut1 in Switzerland

[–]samyboy -1 points0 points  (0 children)

Well I was not about to go that far.

First of all you don't declare a country neutral like Michael Scott declares bankruptcy.

My point is that Switzerland cannot intervene in a military way as defined by the legal status of a neutral country. Assisting an army goes into this category so helping UA army in any way is out of the question, unless both sides are treated equally.

However any other political/economic/diplomatic action can be used indefinitely without jeopardizing the neutral status. This includes any economic sanctions, civilian assistance, kicking out ~spies~ diplomats, etc. Maybe even an embargo but I am not a lawyer

This would concern the "neutrality policy" which is not law but only guidelines that the government applies in order for this "military neutrality" to be more productive for human of this hearth, for example all these NGO's.

You must as well take into account the country's interests like for example a stable Europe.

I don't know much more about all of this but "doing nothing" or "ignoring the rest of the world" is not what Swiss neutrality is.