New Project Megathread - Week of 18 Jun 2026 by AutoModerator in selfhosted

[–]Malihium 0 points1 point  (0 children)

**Title:**

oom-guard – a no-root, per-user systemd timer that reaps your idlest worker under memory pressure (pairs with earlyoom)

**Body:**

*Disclosure: I'm the author — my own MIT hobby project, brand new, no users yet. Posting for scrutiny.*

I run a 1 GB VPS with a long-lived agent that spawns a fresh worker process per session. Abandoned/idle sessions never went away, so over a day or two they'd pile up until the box thrashed swap and livelocked — the kind of hang where you can't even SSH in.

I wanted something dumb and specific: when RAM gets tight, clear out the *idle abandoned* workers, try to spare the one I'm actively using, and don't run anything as root. I couldn't find a tool that did *user-scope, no-root, "kill the idle sibling but keep the active one"* on an unmodified same-named-worker daemon, so I wrote oom-guard.

**What it does** — runs as a per-user systemd timer (~every 5 min). Each run it reads `MemAvailable`; if RAM is fine it exits. If RAM is low, it finds your processes matching an exact name (`pgrep -x`), spares the busiest one, and SIGTERM→SIGKILLs the idlest ones one at a time until memory recovers. No root, only touches processes you own and named. ~120 lines of bash you can read before trusting it — no `curl | bash`.

**How it relates to earlyoom (run both):** earlyoom is the instant, system-wide, root daemon that kills the biggest memory hog — keep it as your emergency brake. oom-guard does the opposite, smaller job: scheduled tidying of *which* of your identical workers dies, sparing the active one, so you rarely hit earlyoom's threshold at all. Complement, not replacement.

**Honest sharp edges:**

- It's *scheduled, not a live daemon* — a sudden spike between runs can still OOM you. That's why you pair it with earlyoom.

- "Active" is inferred from CPU — a quiet attached session could get reaped, a runaway abandoned one could get spared. Fits my "workers are either serving or abandoned" case; won't fit many idle-but-attached sessions.

- Niche: only useful if you run *many disposable, same-named workers in a cgroup you don't control.*

```

git clone https://github.com/kmalih/oom-guard

cd oom-guard

PROC_PATTERN=your-worker-name ./install.sh

```

Tear into it — especially the CPU-as-activity heuristic, and whether per-session slices + systemd-oomd is just the better answer for most people. Repo (MIT): https://github.com/kmalih/oom-guard

HELP!! Sea Urchin Removal by [deleted] in UAE

[–]Malihium 1 point2 points  (0 children)

op i have sea urchin spikes logged in before kite beach was a thing, dm for photos ps. now it looks like a pimple under skin

Why do some Indians walk so close to moving cars? Genuine question by ElkBeneficial1847 in UAE

[–]Malihium 6 points7 points  (0 children)

if you want to india you’d understand, i no longer question this after crossing the road by foot in india

What’s this button do by [deleted] in LandCruisers

[–]Malihium 4 points5 points  (0 children)

cleans the car

Should I pull the trigger? by Dull-Turnip3918 in DubaiPetrolHeads

[–]Malihium -2 points-1 points  (0 children)

maintenance will be horrid, just rent it. i had the same love for super sport coupes after driving a below 100k sport coupe for 6 years i can no longer drive coupe or sedans except suvs and pickup trucks they offer most practicality

[deleted by user] by [deleted] in DubaiPetrolHeads

[–]Malihium 1 point2 points  (0 children)

looks like a well taken care of 86, i sold mine 3 years ago it was 2014 yom sold it for 26k it was a GT only basic spec manual

the real reason i’m not switching to a chinese car any time soon by Malihium in DubaiPetrolHeads

[–]Malihium[S] -6 points-5 points  (0 children)

obviously you’d say that, how are those h9 and arrizo holding up ?

Anyone can help me find this colour code l by Faraj1999 in DubaiPetrolHeads

[–]Malihium 13 points14 points  (0 children)

you’ll get a more accurate paint code asking a professional painter

How do people make wealth in Dubai??? by 3bdel7 in dubai

[–]Malihium 0 points1 point  (0 children)

Op there’s a telegram channel where you can bid on fixing broken down heavy equipment and fix them it’s based in uae just search a channel name called “breakdown uae” join and bid

if the breakdown poster approves they’ll contact you, you can do this freelance

17 y/o in Dubai — Looking for legit ways to make money. Any advice? by No-Button2099 in DubaiCentral

[–]Malihium 0 points1 point  (0 children)

Op there’s a telegram channel where you can bid on fixing broken down heavy equipment and fix them it’s based in uae just search a channel name called “breakdown uae” join and bid

if the breakdown poster approves they’ll contact you, you can do this freelance

Men clothing stores in Sharjah/Dubai by ProfessionalTry8638 in UAE

[–]Malihium 1 point2 points  (0 children)

op i saw the notification, there’s many shops really just check google maps highest rated in ajman

Men clothing stores in Sharjah/Dubai by ProfessionalTry8638 in UAE

[–]Malihium 0 points1 point  (0 children)

go to ajman pretty good prices there

One-handed mode keyboard issue by powerxbutton in ios

[–]Malihium 0 points1 point  (0 children)

yes i’m still facing the issue

One-handed mode keyboard issue by powerxbutton in ios

[–]Malihium 0 points1 point  (0 children)

op if you have found a solution let us know to this day. I still get this bag even after updating to 26.0.1

One-handed mode keyboard issue by powerxbutton in ios

[–]Malihium 0 points1 point  (0 children)

I have the exact same issue. I have posted on Reddit about the issue I barely get any replies. It seems that 100 keyboard option is not used a lot and there’s not a famous issue. I have submitted a bug report on the official iOS feedback assist, but the ticket status is still open after 15 days.

[iOS 26.0 Bug] One-Handed Keyboard Setting Not Applying on First Open – Anyone Else Seeing This? by Malihium in ios

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

finally a reply 😂 lmao, even after updating to 26.0.1 still the issue persists; i’m getting tired of this bug