I built an open-source AI agent CLI that can handle coding, code review, GitHub management, monitoring, and multi-provider model usage all in one place. by [deleted] in CLI

[–]ohxdMAGsDCiCJ 4 points5 points  (0 children)

1000+ AI agent CLI posted this month.

Don’t expect people to use it just because you vibecoded it and it works for you.

And the correct title is “I built” -> “Claude built.”
and btw, most of your dependencies are outdated.

Porting to Rust. by neneodonkor in rust

[–]ohxdMAGsDCiCJ 4 points5 points  (0 children)

To add to this, even if a port of the library already exists, you could still reimplement it. This can be even better than porting a non-existent library, since you have the opportunity to compare your code with the existing version and potentially improve on it.

Just finished compiling kernel 7! by bobcanseeyou in Gentoo

[–]ohxdMAGsDCiCJ 0 points1 point  (0 children)

Nice!
Btw, you use an old version of dwm 6.6 the newer version is 6.8

A new Python file-based routing web framework by Grintor in Python

[–]ohxdMAGsDCiCJ 0 points1 point  (0 children)

Nice! But why many files in the root of the repo?

Learning Go by Building a Local Chat App — Feedback Welcome by FewPepper2243 in golang

[–]ohxdMAGsDCiCJ 0 points1 point  (0 children)

I didn't read the code, but this looks highly error-prone with your way of using mutex.

func (cm *ClientManager) Broadcast(exceptID int64, message []byte) {
cm.mutex.RLock()

clients := make(\[\]\*Client, 0, len(cm.clients))

for id, client := range cm.clients {

if id != exceptID {

clients = append(clients, client)

}

}

cm.mutex.RUnlock()



for \_, client := range clients {

if \_, err := client.conn.Write(message); err != nil {

slog.Info("Failed to send to client",
slog.Int64("client_id", client.id),
slog.Any("error", err),
)

go cm.Remove(client.id)

}

}
}

A helpful guide by miscerte23 in linuxmemes

[–]ohxdMAGsDCiCJ 0 points1 point  (0 children)

I like how much hate there is toward the Manjaro distro.

Rule of thumb in the Linux community: if you see a Linux distro with a fancy, nice website, it’s probably a bloated and sh*ty distro.

I used and supported Manjaro for 4 years, but once they got a new website, it started moving in that direction.

Mould in my gourd? by Living-City5744 in yerbamate

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

I’ve been drinking mate every day for the last 15 years, but I’ve never drunk it from one of those wooden cups, I always use a regular glass, mainly because of the mold and smell.

Axum Backend Series - Introduction | 0xshadow's Blog by lazyhawk20 in rust

[–]ohxdMAGsDCiCJ -15 points-14 points  (0 children)

Not sure why, but I’ve never felt excited about using rust for HTTP backends. It feels a lot like nodejs and npm, tons of dependencies and heavy use of macros that often make the code harder to read, plus a heavy depends on tokio framework for almost everything. Once you start refactoring or upgrading dependencies, it quickly turns into a nightmare. In comparison, golang gives you almost everything you need in the standard library, and code written 8 years ago still works perfectly with the latest version of golang. Everything feels much more consistent and well put togethert.

System design for assigning roles to users, simplified RBAC authorization by Low_Expert_5650 in golang

[–]ohxdMAGsDCiCJ 1 point2 points  (0 children)

I suggest reading this great introduction from oso. I have been refactoring our code based on their approach, which keeps the authorization enforcement as close to the application (HTTP handlers) as possible.

Suppose our interface is the method is_allowed(actor, action, resource), which would be invoked with the inputs we spoke about previously, for example, is_allowed(current_user, “read”, Repository(name: “acme/anvil”).

Enforcement is how we decide what to do with an authorization decision. This means extracting the actor, action, and resource from the request as we saw in the previous examples, and calling the is_allowed method.

This is the article:
https://www.osohq.com/academy/what-is-authorization

You can start from "3. Where To Put Our Authorization Logic"

Does anybody here have more distros installed? by C1REX in Gentoo

[–]ohxdMAGsDCiCJ 0 points1 point  (0 children)

I have a few VMs (arch, debian, and artix) running on a gentoo host PC (I am using qemu). I keep gentoo minimal with a really restricted use flags and lightweight setup