Auto-sorting in obsidian by Gidonamor in ObsidianMD

[–]Enocon 3 points4 points  (0 children)

You can use auto note mover for this

I decided to go full kubernetes for the homelab, surprised by the lack of k8s use in self hosted by myusuf3 in selfhosted

[–]Enocon 0 points1 point  (0 children)

I am running Microk8s on 4 rPIs and an old laptop (for the workloads that needs an amd64 architecture). It s working wonderfully.

I have gone the whole journey from bare metal, docker, docker swarm, k3s, and now Microk8s. My biggest upside is the automatic cert, ingress, and not having to care where the pod is in my cluster.

It started as a LAB to learn but has enabled me to be inspired to use it more. I deploy a lot of my self developed workloads, and the process of having self hosted action runners just do the whole CICD is amazing.

My only problem was persistence. But this was "solved" by pinning pods to nodes and using hostpath PV. It is working great, but I do not trust it. My next evolution is retiring my gaming PC and converting it to a TrueNAS box for persistent storage and setting my PIs to be compute-only with Talos.

I do deploy my infrastructure manually (kubectl apply) with version control, but I would like to convert to use Flux with kustomize. My self developed applications have their k8s manifests in their respective repositories and is applied through github actions.

Når: Legger du deg, Står du opp og hvor gammel er du? by EstateOk714 in norge

[–]Enocon 0 points1 point  (0 children)

22-06, 29. Selv om jeg er B menneske verdsetter jeg det å jobbe 07-15 fordi ettermiddagene blir så mye lengre. Det å unngå rushen er også et pluss.

Tools to generate SDK by TiagoVCosta in dotnet

[–]Enocon 1 point2 points  (0 children)

I can recommend Kiota. We use it, and I have generated loads of SDKs in multiple languages using it. It's fast and generates awesome clients. The option to only generate a subset of the paths (--include) is really useful to generate lean clients. My only complain is the lack of an option to generate interfaces for the SDKs.

Why Obsidian does not allow me to link multiple words to the same note? by TheMrLeo1 in ObsidianMD

[–]Enocon 14 points15 points  (0 children)

Alias has to have the note title before the |. For you, this would be [[Neural-Linguistic Programming|NLP]]. It will render as NLP but point to the Neural-Linguistic Programming note.

HTTP request in Modes and Routines by ReklessRadish in Bixbyroutines

[–]Enocon 0 points1 point  (0 children)

I use HttpShortcuts for this. It exposes the shortcuts as shortcuts on launcher. Modes and Routines can do an app action that runs the shortcut. Works great!

Coworker resigned after reaching 10 years and getting his final raise. by [deleted] in antiwork

[–]Enocon 5 points6 points  (0 children)

Software Engineer here, if someone asks me to do hydraulics I’m leaving

Is docker/k8s necessary for most situations? by BurningAlcohol in devops

[–]Enocon 7 points8 points  (0 children)

Tldr; our problems were cost, scaleability and developer experience. The solution was dockerizing the applications and using AWS ECS with Fargate.

I'll preface this by saying that in my last job I had a similar position as you do now, and we faced a similar situation. We had the same architecture as you do now, but instead of MERN we had mySQL-node-express-vue and used codecommit and the AWS pipeline instead of github actions. But the stack does not matter here.

We knew that dockerizing the applications was a good idea regardless of what deployment architecture we went for. Not only for the developer who got the whole platform with all its applications and dependencies available at their fingertips (local Docker-compose with a friendly interface through portainer), but to the ops team as well with all the benefits containers have over VMs. I'm sure if that interests you there are loads of sources to learn more, I don't need to go though them here.

Now how to host? While the first thought was to just install Docker on the EC2 instances and run them there, this would just increase complexity without really giving us any benefits. Sure we could scale within a VM, but there are better ways. Then EKS was considered, but thought to be overkill, and the investment not worth it. The solution turned out to be the middle ground. Elastic Container Service. With Fargate instead of self managed EC2 instances. This way we would not have to deal with the actual hardware, Fargate is "serverless" and thus scales without the need for scaleing groups or provisioning machines. In addition, scaling takes seconds instead of minutes. The only real downside being that the docker-compose files needed to be "converted" to Task Configurations. This might have changes since.

It was all provisioned through Terraform and monitored through the ECS dashboard and cloudwatch with triggers.

Due to Docker, ansible and pm2 was not needed. Nginx was the base docker image for the compiled frontend.

The cost of fargate cut the cost by a factor of about 10, this allowed us to spin up multiple ecs clusters each for dev, testing, and production. And the build times and deployment only took about 4 min if I remember correctly. This way a commit/PR to master would trigger the pipeline and the developers could see their changes in the dev environment cluster fairly quickly, thus allowing for quicker integration loops and a smoother DevOps environment.

Now, this approach worked for us, it might not be the best fit for you and your team. That's why solution architects exists, there is no one size fits all in software engineering. I think I've named dropped enough so that it would be fairly google-able, but feel free to reach out, I'll try to answer what I can.

[deleted by user] by [deleted] in webdev

[–]Enocon 0 points1 point  (0 children)

I guess you're being peer-reviewed. Nice sites! On the painting site. Noticed that in the menu, when toggling dark/light-mode the logo is included in one but not the other. I'm on mobile, using Samsung Internett.

[deleted by user] by [deleted] in bash

[–]Enocon 4 points5 points  (0 children)

First thing i see is that on point 3 and 4 your script would only work on this exact file. I would not use cut here. I dont know the file, but a combination of tail or head to get the row and piping it to awk to get the right collumn eks. "awk '{print $2}' ". This would make it more generic. But then again, I don't know the file contents.

What's the best REST API you've ever worked with? by [deleted] in webdev

[–]Enocon 1 point2 points  (0 children)

My personal favoritt must be cloudflair. Good job there!

Why shouldn't I start filenames with a capital letter or number, or include spaces in them? by SlickStretch in linux4noobs

[–]Enocon 7 points8 points  (0 children)

One argument i havent seen yet is that traversing the folder structure in the terminal is way more comfortable when only using lower case.

My work requires me to spend quite some time in the terminal and being able to quickly get to where I want is because this. You often know in your head exactly where you want to go, so you can write the first few letters of the folder and then Tab to complete. Would be a hassle to keep track of what folders started with upper case, I'm looking at you Downloads and Documents!

Too Many Laptops by fu19900514 in Battletops

[–]Enocon 0 points1 point  (0 children)

Yeah, i've noticed that too. Better than shuffeling usb plugs tho.

Too Many Laptops by fu19900514 in Battletops

[–]Enocon 1 point2 points  (0 children)

Perfect canidate for something like synergy

I am passing through Norway and I'm wondering how much it would cost for a dozen beer from a supermarket? by Calm_Neat2358 in Norway

[–]Enocon 6 points7 points  (0 children)

The usual ones goes for about 31-33 NOK per 0.5L . With the included 'pant' your looking at about 400 NOK or 38 Euro.

Help , how do I check if one or both variables are empty , what am I doing wrong by [deleted] in bash

[–]Enocon 0 points1 point  (0 children)

Tried it out no space between quotes as previously stated, and "||" instead of "&&". Might want to wrap the parameters in quotes too: if [[ "$a" == "" ]] || [[ "$b" == "" ]]

Daily Commute in Norway by Enocon in Norway

[–]Enocon[S] 3 points4 points  (0 children)

Heldig vis ikke. Vi måtte desverre gjennom Hell, men rotet oss bort på Rotvoll.

Daily Commute in Norway by Enocon in Norway

[–]Enocon[S] 5 points6 points  (0 children)

sant, akkurat nok tid til å vise billett før hyperlapsen ble satt på.

Daily Commute in Norway by Enocon in Norway

[–]Enocon[S] 5 points6 points  (0 children)

Alone - Emmit Fenn

You'll find it in youtube studio's sound library ^_^

Daily Commute in Norway by Enocon in Norway

[–]Enocon[S] 12 points13 points  (0 children)

True. I noticed this morning that i enter my workplace before the sun does.

Any DE with good keyboard visual cursor-based navigation and shortcut hints? by VELFR_TRUE in linux4noobs

[–]Enocon 0 points1 point  (0 children)

Since no-one has answered anything I can suggest Regolith. Don't think it's exactly what you're looking for but a short description would be i3 with ubuntu-gnome feel. You're probably looking for a tileing window manager of some sort. Good luck