Skip to content

Instantly share code, notes, and snippets.

View jesuino's full-sized avatar

William Antônio Siqueira jesuino

View GitHub Profile
diff --git a/distributions/maas-portal/config/__tests__/distribution.spec.js b/distributions/maas-portal/config/__tests__/distribution.spec.js
index 593a43725..032330465 100644
--- a/distributions/maas-portal/config/__tests__/distribution.spec.js
+++ b/distributions/maas-portal/config/__tests__/distribution.spec.js
@@ -1,6 +1,7 @@
const fs = require('fs');
const path = require('path');
const YAML = require('yaml');
+const ts = require('typescript');
diff --git a/distributions/maas-portal/package.json b/distributions/maas-portal/package.json
index eb7e0bd51..ded7c1e42 100644
--- a/distributions/maas-portal/package.json
+++ b/distributions/maas-portal/package.json
@@ -14,6 +14,7 @@
"build": "rspack --config ./config/rspack.prod.js",
"build:prod": "rspack --config ./config/rspack.prod.js",
"test-unit": "jest --silent",
+ "test:cypress-ci": "pnpm exec concurrently -P -k -s first \"make grid-start-mock\" \"pnpm exec wait-on http://localhost:4020/maas-portal/ && pnpm --filter gen-ai run cypress:run:maas-portal\" -- ",
"type-check": "tsc --noEmit",
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:18 +0x13
github.com/opendatahub-io/maas-library/bff/internal/repositories.(*UserRepository).GetUser(0x68981ba2270?, {0x33e1818, 0x68981c5a2c0}, 0x68981d5b240)
/home/wsiqueir/projects/odh-dashboard/packages/maas/bff/internal/repositories/user.go:20 +0x4e
github.com/opendatahub-io/maas-library/bff/internal/api.(*App).UserHandler(0x68981c42000, {0x33d0908, 0x68981c705a0}, 0x68981c348c0, {0x68981b9fea0?, 0x0?, 0x68981dea18c?})
/home/wsiqueir/projects/odh-dashboard/packages/maas/bff/internal/api/user_handler.go:30 +0x1a6
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x68981ba0060, {0x33d0908, 0x68981c705a0}, 0x68981c348c0)
/home/wsiqueir/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x84b
{
"system_message": "You are a helpful assistant that calls tools based on user requests.",
"tools": [
{
"type": "function",
"function": {
"name": "run_notebook",
"description": "Execute a Jupyter notebook as a Kubeflow pipeline run.",
{
"tools": [
{
"type": "function",
"function": {
"name": "run_notebook",
"description": "Execute a Jupyter notebook as a Kubeflow pipeline run.",
"parameters": {
"type": "object",
"properties": {
@jesuino
jesuino / run_wumpus.py
Last active May 15, 2026 18:48
mundos de wumpus - vários mundos gerados para testar meu código
import subprocess
import time
mundos = ['''0 # 0 0
0 0 * 0
0 0 $ 0
@ 0 0 0
''',
'''0 # 0 0
* 0 0 0
0 0 $ 0

Source Map Warnings - Solutions Guide

The Problem

The packages domutils, entities, and htmlparser2 (transitive dependencies of react-sanitized-html) have malformed source maps. Their sourceRoot points to GitHub URLs instead of local paths:

"sourceRoot": "https://raw.githubusercontent.com/fb55/domutils/0ab8bcf1ecfc70dfc93291a4cb2496578ac25e9c/src/"
@jesuino
jesuino / llama.cpp_commands.md
Last active March 9, 2026 16:55
My llama.cpp commands to run locally my models. I should update it as I get better parameters

Hardware:

64 GB RAM - Linux (Fedora) AMD Ryzen Pro AMD Radeon

Qwen 3.5 SMall models

!!! Use Llama.cpp Vulkan distribution

@jesuino
jesuino / Kind on linux and host.docker.internal.md
Last active January 14, 2026 13:52
Kimi response for kind on linux and host.docker.internal

I'll help you troubleshoot the localhost resolution issue in your Kind cluster on Podman. Let me search for the most current information about this specific setup. Based on my research, this is a known issue with Podman on Linux. The host.containers.internal and host.docker.internal entries are not being reliably added to /etc/hosts in Kind clusters. Here are the main solutions:

Primary Solutions

1. Network Backend Configuration (Most Common Fix)

The issue is often related to Podman's network backend. Try changing from pasta to slirp4netns:

Edit your ~/.config/containers/containers.conf file:

@jesuino
jesuino / error.log
Created December 1, 2025 14:20
kfp 2.15.0 reproducer - a way to reproduce a problem with kfp 2.15.1 that didn't happen on kfp 2.14.6
time="2025-12-01T14:17:59.005Z" level=info msg="capturing logs" argo=true
I1201 14:17:59.064603 14 main.go:66] Setting log level to: '1'
I1201 14:17:59.068492 14 cache.go:89] Connecting to cache endpoint ml-pipeline.kubeflow:8887
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[KFP Executor 2025-12-01 14:18:58,776 INFO]: Looking for component `simple_step` in --component_module_path `/tmp/tmp.1Qm9TBZmcu/ephemeral_component.py`
[KFP Executor 2025-12-01 14:18:58,776 INFO]: Loading KFP component "simple_step" from /tmp/tmp.1Qm9TBZmcu/ephemeral_component.py (directory "/tmp/tmp.1Qm9TBZmcu" and module name "ephemeral_component")
[KFP Executor 2025-12-01 14:18:58,777 INFO]: Got executor_input:
{
"inputs": {},
"outputs": {