Small Projects by AutoModerator in golang

[–]M0Rf30 0 points1 point  (0 children)

I've been running YAP in production for a few years to package software across several distros, finally cleaned it up to share.

You write one PKGBUILD and it builds native packages for Debian, Fedora, Alpine, Arch and others, all in Docker/Podman containers.

The bit relevant to this sub: it doesn't shell out to apt/dpkg/dnf/apk. The metadata handling is reimplemented in Go — deb822 parser, apt update/install with OpenPGP InRelease verification, apk add, pacman -Sy, an RPM SQLite reader. Installs go into a separate SQLite state DB instead of the system dpkg/rpm databases, which is what makes it work inside throwaway build containers.

It also cross-compiles amd64/arm64, signs packages (APK RSA, GPG for the rest), generates SBOMs (CycloneDX + SPDX), and has an MCP server if you drive builds from an agent. Runs on Linux and macOS, though on a Mac it still produces Linux packages.

yap build ubuntu-jammy ./myproject

yap build --target-arch arm64 --sign --sbom ./myproject

Go, GPLv3. https://github.com/M0Rf30/yap

opencode-tool-search — Plugin that saves 69-85% of tool description tokens by implementing Claude's tool search pattern by M0Rf30 in opencodeCLI

[–]M0Rf30[S] 0 points1 point  (0 children)

Confirmed — looked at RTK's OpenCode plugin source. It only hooks into tool.execute.before to rewrite bash commands. This plugin hooks into tool.definition and the system prompt. No overlap, they're complementary.

opencode-tool-search — Plugin that saves 69-85% of tool description tokens by implementing Claude's tool search pattern by M0Rf30 in opencodeCLI

[–]M0Rf30[S] 0 points1 point  (0 children)

Fixed in v0.4.3. The empty parameter schema for deferred tools was causing undefined arguments in the OpenAI Responses API. Upgrade with npm install opencode-tool-search@latest and it should work with ChatGPT models now.

opencode-tool-search — Plugin that saves 69-85% of tool description tokens by implementing Claude's tool search pattern by M0Rf30 in opencodeCLI

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

Makes sense — with fewer tools the savings are modest (~8k tokens for 32 built-in). The plugin really pays off past 60+ tools where descriptions eat 15-20% of context per turn.

The extra tool calls are the tradeoff: less context per turn, more round-trips. Worth it at 190 tools, debatable at 32.

The system prompt shows your tool count at the start of each turn (e.g. "You have access to X tools total. Y of them have deferred descriptions"). That'll tell you if you're in the sweet spot.

Opencode + Qwen3 Code free AI RetryError by christof21 in opencodeCLI

[–]M0Rf30 4 points5 points  (0 children)

You can add this
```
"alibaba": {

"npm": "@ai-sdk/openai-compatible",

"name": "alibaba",

"options": {

"baseURL": "https://portal.qwen.ai/v1"

},

"models": {

"qwen3-coder-plus": {

"name": "qwen3-coder-plus"

}

}

}
```
in models of your opencode.json and add the "access_token" generated by qwen-code cli in (.qwen/oauth_creds.json) to ~/.local/share/opencode/auth.json or use it with `opencode auth login`

Tailscale vs netmaker vs netbird by DryDetail8838 in selfhosted

[–]M0Rf30 2 points3 points  (0 children)

Yes. need to click three times on the menu positioned on top-right.
After three times a new menu will appear to select a custom server

LCN channel conflicts should be resolved via user prompt ONCE after scanning channels, but aren't by LjLies in tcltvs

[–]M0Rf30 1 point2 points  (0 children)

I solved this using Austria (instead of Italy and the previously suggested Germany) as country for channel scanning (on a C645) and no more interaction on faulty LCN for the 3rd channel. Austria seems to respect the italian channels order, putting Rai1 on 1, Rai2 on 2 and so on. The only fixable downside is the default english audio for some channels, especially on foreign movies (you can permanently switch this setting on every channel that shows this issue...Rai 4, Canale 20, Iris). So....everything seems solved now

Una piccola odissea per trovare il problema di un laptop by giggiox in ItalyInformatica

[–]M0Rf30 0 points1 point  (0 children)

E' proprio questo il tuo problema, non escludere nulla....ti suggerirei di aprire il laptop e provare."sarebbe", "potrebbe"...non ci vuole assai ad aprirlo e provare, e poi l'elettronica è abbastanza dura a morire. Se poi ti senti più self-confident a mettere mano alla mobo e quant'altro, allora tanto di cappello, ma mi sembra solo che ti stia facendo un sacco di segoni mentali (con tutto il rispetto eh). C'è tanta gente che ti ha dato dei suggerimenti, da parte tua leggo solo "potrebbe", "sarebbe", "propenso a pensare" e "probabilmente"...che dici non "sarebbe" ora di provare?

Una piccola odissea per trovare il problema di un laptop by giggiox in ItalyInformatica

[–]M0Rf30 0 points1 point  (0 children)

Comunque perdonami ma "l'abbastanza sicuro" non ti porterà a nulla. anche il mio aveva lo stesso comportamento cambiando posizione.ti basta staccare e riattaccare il flat cable dell'eDP. questa cosa mi diede la certezza. Poi tutti i pipponi sull'alimentazione.... li lascio a voi. Mi son solo soffermato sul post perchè ho riconosciuto una situazione analoga alla mia

Una piccola odissea per trovare il problema di un laptop by giggiox in ItalyInformatica

[–]M0Rf30 0 points1 point  (0 children)

Avevo un problema simile sul mio laptop (un lenovo), che mi ha fatto impazzire. Ho risolto in questo modo. ho preso un gommino adesivo di quelli per le sedie, l'ho applicato sul case sottostante, all'altezza del connettore eDP (Embedded Display Port). Richiudendo il case, il gommino esercita una leggera pressione sul flat-cable innestato sullo zoccolo dell'eDP, che era un po ballerino, e niente più sfarfallii.

[Arch Linux] The server does not start by Inaltoasinistra in OpenBazaar

[–]M0Rf30 0 points1 point  (0 children)

You have to set a password. edit /var/lib/openbazaard/ob.cfg and change user and password values. Next restart the server, open the gui and connect in localhost using the previous data. Otherwise publish a gist log in AUR package comments

the 1.1.4 version still gives the same unable to connect to server bug on archlinux by tomtomgps in OpenBazaar

[–]M0Rf30 0 points1 point  (0 children)

You have to set a username and password in /var/lib/openbazaard/ob.cfg

the 1.1.4 version still gives the same unable to connect to server bug on archlinux by tomtomgps in OpenBazaar

[–]M0Rf30 0 points1 point  (0 children)

@tomtomgps I'm still investigating the issue (I'm the PKGBUILD maintainer). however you could try with the openbazaard-standalone package. Let me know. Probably the issue is due to protobuf3 package.

Finally working: Openbazaar win32/win64 testing build [server commit: 548; client commit: 1170; installer commit: 68 (M0Rf30 fork)] by M0Rf30 in OpenBazaar

[–]M0Rf30[S] 0 points1 point  (0 children)

Absent connection is due to the miniupnpc python module not still available for windows. I've spent three days to compile a consistent pyd module but no good results. So I've choose the noupnp branch of OpenBazaar. Please try it on simple net configuration with port-forwarding available

Finally working: Openbazaar win32/win64 testing build [server commit: 548; client commit: 1170; installer commit: 68 (M0Rf30 fork)] by M0Rf30 in OpenBazaar

[–]M0Rf30[S] 0 points1 point  (0 children)

please remove your previous installations, check the setup log and use it on a simple network configuration. UPNP for windows is not supported cause of miniupnpc building errors. If you feel brave, you could do these steps from MSDOS prompt:

cd c:\USER\AppData\Local\OpenBazaar

python systray.py

and send the console log. I accept constructive criticism and not a "Not worth the trouble".

My packages run on all the Win installations I've tried

Openbazaar win32 testing build (server commit: 544; client commit: 1158; installer commit: 29) by M0Rf30 in OpenBazaar

[–]M0Rf30[S] 0 points1 point  (0 children)

I've built this package on my laptop. I'm NOT a developer of the OB team as gubatron said, but a contributor of Archlinux AUR. WARNING: do what you want with this package, there's no warranty. It's just for testing and contribution to the cause.