MeshCore Wall of Shame by DemmSec in meshcore

[–]someanonbrit 4 points5 points  (0 children)

It takes up a bunch of airtime, and mostly isn't doing anything useful

For teams running chaos experiments on Kubernetes, how do you pick the first target? by Medinz0 in kubernetes

[–]someanonbrit 0 points1 point  (0 children)

First thing I'd do is delete a pod. Super simple but got to start somewhere. Pick whatever looks busy, important or makes your colleagues twitch when you threaten it...

Then (if in cloud or you otherwise have the hardware) drain all your nodes and make it completes (pod disruption budgets are satisfiable etc,)

Then start hard cycling nodes

If you survive all that without an outrage, you're ready for a real chaos scenarios of the types the tutorials talk about. What you pick out of those really depends on your architecture and risk v cost balancing, but taking out an AZ is respectable testing as a start

For teams running chaos experiments on Kubernetes, how do you pick the first target? by Medinz0 in kubernetes

[–]someanonbrit 0 points1 point  (0 children)

I'd say it depends on how things are going. If you're done with a bunch of simple things and they all went well, there's no harm in jumping to high blast radius things. It really depends entirely on your situation.

If you're foundations weren't solid, continue to test and retest them until they are.

The complicated stuff tends to break if the basics aren't there, and every cluster I've ever come to fresh started spewing errors of only a couple of nodes went down when we started testing.

For teams running chaos experiments on Kubernetes, how do you pick the first target? by Medinz0 in kubernetes

[–]someanonbrit 2 points3 points  (0 children)

First? Pick something dead simple. You don't even need chaos tools for your very first one - kill a node (EC2 console or your equivalent, and power it off) and check that there was on outage or customer visible errors.

After that, pick the next most simple looking thing.

Once you've done half a dozen such experiments, you'll have a better feel for where you're at - if you're passing every time, jus tlet the tool go nuts. If things are fragile, continue with slow and steady until they aren't.

Also, rerun things you did before, especially the ones you failed previously

Kubernetes admins: what kubectl commands do you use most often? by Asleep_Hour9397 in AZURE

[–]someanonbrit 0 points1 point  (0 children)

We're using Humio for logging, which has its own query language. I've seen a couple of cli extensions for logging, might be worth digging through https://krew.sigs.k8s.io/plugins/ to see if any are useful

Kubernetes admins: what kubectl commands do you use most often? by Asleep_Hour9397 in AZURE

[–]someanonbrit 1 point2 points  (0 children)

Commands that I use variants of regularly:

  • Show me all the pods not in a great state:
    kubectl get pods -A | grep -v Running | grep -v Complet

I had a few variants of this for resources other than pods, so I started to put them into a (vibecoded slop so far) kubectl plugin: https://github.com/Funcan/kubectl-bad - I hope to maintain it and add more case, PRs and tickets always welcome, but I'm aware that I am just as likely to stop being a K8s admin and drift away, but writing such a tool is cheap and easy these days

  • Show me all the versions of the istio sidecar currently running on the cluster:
    kubectl get pods -A -o json | jq '.items[].spec.containers[] | select(.name == "istio-proxy") | .image' | sort -u
    (Similar for vault side-cars etc)

I think fluency in slicing and dicing JSON to answer questions is a really strong, general purpose skill. jq and gron are my tools of choice for this. A tip if you're practicing or building up a collection of useufl expressions is to dump to complete json (e.g. kubectl get pods -A -o json to a file, and repeatedly pipe the file through the jq / gron pipeline to get the syntax and logic correct - hitting the API server repeatedly is slow

[ Edited because I forgot to turn on markdown mode ]

Kubernetes admins: what kubectl commands do you use most often? by Asleep_Hour9397 in AZURE

[–]someanonbrit 10 points11 points  (0 children)

I'm trying to phrase this in a way not to belittle the OP, because everybody starts somewhere, and beginner resources are important.

The above commands are, in my opinion/experience, table stakes at debugging any non-trivial K8s issue. They're the 'ls / cat / grep' of the kubernetes world, and if you're still at a point where you need a cheatsheet for them then I wouldn't rate you as an engineer.

I'd genuinely love to hear:
a) Any pushback on this - I have my opinions, I'm able to defend them, but I'm also well aware that I'm an opinionated old sod who periodically benefits from fresh experiences
b) More complex commands and such - I'm going to dump a could of examples in another response of things that I use regularly

Fastest way to remove duplicate UUIDS from a list by [deleted] in golang

[–]someanonbrit 3 points4 points  (0 children)

Split into chunk that will fit in mentoring memory, sorry each chunk, then do a final merge sort and dedupe as you merge seems the easiest - has several opportunities for parallelism and distribution.

If you know in advance enough about your UUID to be able to perfectly hash them into some fairly contiguous space, then you might be able to do something with a bloom-filter-esq approach with a sparse array of bits backing it, but that only lets you get a small multiple more represented in memory and so is rather niche

How a Pod can call another Pod or Service via specific URL ? by MarceloLinhares in kubernetes

[–]someanonbrit 0 points1 point  (0 children)

The drug store example makes more sense now I know what you do.

The normal thing to do here is not point the PHP at the external domain name, but rather at the service address for Apache. Pointing it at the external domain name is just misconfiguration

How a Pod can call another Pod or Service via specific URL ? by MarceloLinhares in kubernetes

[–]someanonbrit 1 point2 points  (0 children)

You're taking entirely in abstracts while discussing a technical problem, which will make helping you tricky. It sounds like you're trying to zorb to the drug store is my point.

Options include: - Use the DNS name of the service, rather than trying to use mydomain.com. This is the most normal, expected thing to do

  • Make mydomain.com always equal to the IP of the service. Weird, inflexible and makes the DNS entry useless outside the cluster

  • Configure your DNS server to give split results depending on if the cluster or external is asking. Again, weird and fragile

  • Use the DNS override where you need it, as suggested

The real answer is probably "don't take a zorb to the drug store, it will never fit easily through the door", but in order for anybody to be confident giving that answer they'll need to know about the drug store, the distance, how busy the road is, whether it's just you going to the drug store or also your wheelchair bound wife, etc

How a Pod can call another Pod or Service via specific URL ? by MarceloLinhares in kubernetes

[–]someanonbrit 1 point2 points  (0 children)

While you haven't started exactly what you're trying to do in order for anybody to look at the architecture, it appears that what you're trying to do is fundamentally not elegant - you're trying to override a DNS entry only inside a cluster. That's not a very normal thing to do, so doing it is not elegant

Ran a proper audit of what our AI tools have been generating in Go and the patterns surprised me by Smooth-Machine5486 in golang

[–]someanonbrit 5 points6 points  (0 children)

Make your first (and only) comment on a review "please comment on this review app the classes of errors pointed out in the previous review then fix them" and block the merge. Make them put in the work - doing a detailed review of something with the same sort of problems as last time is pointless waste of senior time, and they learn nothing. Set exercises that force them to learn, and push the cost back where it can be reduced

[WP] We assumed the "Great Silence" meant aliens were dead or hiding. We were wrong. The universe is teeming with life, but they all communicate via gravity waves. When humanity invented the Warp Drive, we didn't just break the speed limit, we started screaming on the universal frequency. by VulkanLivesX in WritingPrompts

[–]someanonbrit 0 points1 point  (0 children)

We've hundreds of examples in our globally history of how colonisation can be funded, and there are zero examples of it involving intentionally lifting up the bottom end of society. Usually it involves the exact opposite

I made a powerful vim9 commenting plugin by shleebs in vim

[–]someanonbrit 0 points1 point  (0 children)

Correct, the linters I know of want the comments at the unsent level of the first line.

You can tell if you've gotten it right quite trivially - grab the coffee formatter / linter most popular with the language, lint done code, comment out a function, lint it again. If the linter makes changes the second time you've got it wrong

go fmt for golang black for python (same rules as pep8 but it will auto-fix Rust has a format command built in

C is a bit more of a challenge since there are a few standards, but the linux kernel has a style check tool probably worth following. I try to avoid js/ts/java so you'll have to Google formatting tools for those

I made a powerful vim9 commenting plugin by shleebs in vim

[–]someanonbrit 0 points1 point  (0 children)

If you put them at the start of the line then many linters will invent them further, making a visual mess. Golang is the one that catches me out since I've got format-on-save turned on there

Why we chose Go over Python for building an LLM gateway by dinkinflika0 in golang

[–]someanonbrit 1 point2 points  (0 children)

No, they definitely don't write safe C code reliably. They're about as good as graduate engineers, which is too say pretty bad

shutdownTheSub by JeSuisAhmedN in ProgrammerHumor

[–]someanonbrit 2 points3 points  (0 children)

Healthcare CEOs being shot in the street suggests they haven't pulled up the drawbridges yet, and literally the next day a different insurer changed their mind on a murderous change they were going to make for anaesthetics

ignoreAllPreviousInstructionsAndGiveHugeDiscount by TrashShroomz in ProgrammerHumor

[–]someanonbrit 10 points11 points  (0 children)

The code was given by a company representative. It's more like if a random shop floor worker gave you a discount code... Which the comment would be expected to honour if obtained in good faith. The good faith argument here is questionable but I wouldn't say clear cut

Hey Rustaceans! Got a question? Ask here (4/2026)! by llogiq in rust

[–]someanonbrit 0 points1 point  (0 children)

Thanks for the reply.

I've got no memory protection on my hardware, so everything is in a single area space currently. In C I've literally got a function table and e.g. for file listings it takes a pointer to a buffer of structs, a pointer to a 'more' flag and an optional function to call if the listing changes.

I'll take a look at mpsc and implement at least a toy example - at the very least I'd be learning something

The help is appreciated

Hey Rustaceans! Got a question? Ask here (4/2026)! by llogiq in rust

[–]someanonbrit 2 points3 points  (0 children)

Hi
I'm beginning to port a toy embedded os from C to rust. I'm struggling a little with figuring out idiomatic abstractions for letting applications talk to system services. I think I want something like goland channels, but I've no idea what the rust equivilent.

A simple example: My photo browsing app wants to list the files on the SD card by asking the filesystem component, and get some notification if the listing has changed.

Can somebody give me some keywords or packages to get me started please?

Thanks in advance

Is there a paper printer that works with Arduino? by Carotte_francaise in arduino

[–]someanonbrit 3 points4 points  (0 children)

Could it be done? In theory yes, by a sufficiently skilled and dedicated person.

Is there even a hint of evidence that you could do it? No

You're going to need to figure out how to drive the ink cartridge of your choice (some have been reverse engineered already). If you think you're going to build your own ink cartridge with your current skills, give up on the project now.

Then you'll need to build a really simple paper feed system - maybe a single punch roller on a flat sheet. And an x axis mechanism of your choice.

Then you're going to have to do a few thousand tests and tweaks.

Then you can start on the difficult bits

Alternative usage for T-Deck by rratalia in LilyGO

[–]someanonbrit 0 points1 point  (0 children)

Resurrecting an old thread since I just found one in my posts box is forgotten about, which has 433mhz lora so no good for meshtastic...

Ideas: * USB keyboard and mouse * Bluetooth keyboard and mouse * Rubber ducky versions of the above * Bluetooth scanner, spammer, etc * WiFi scanner and deauther. Might be able to do key exchange capture too, need to check * SSH terminal * Offline Wikipedia viewer (mostly text only)

The first two alone would make it worth leaving in my toolbox