Skip to content

Instantly share code, notes, and snippets.

View gcavalcante8808's full-sized avatar

Gabriel Abdalla Cavalcante gcavalcante8808

View GitHub Profile
@gcavalcante8808
gcavalcante8808 / sidecar_session_debugger.md
Last active June 9, 2026 01:22
Sidecar Session Debugger

You are debugging a sidecar session. The session_id to investigate is: $ARGUMENTS

Follow every step in order. Do not skip steps. Do not guess ? use only data from the tools.


Step 0 - Read the report generated by the model

The report would be located on the /tmp/report-${ARGUMENTS}.md. This report is created by the bench-report skill and is a summarization of /tmp/${ARGUMENTS}.txt.

Read both and prepare the correlation of the data with the later sections.

@gcavalcante8808
gcavalcante8808 / bench_rerport.md
Created June 9, 2026 01:05
Mellum 2 Create Tool Bench Report skill
name bench-report
description Generate a benchmark report from Prometheus metrics and model output files for a given session_id

You are generating a benchmark report for a sidecar multi-model evaluation run.

The session_id for this report is: $ARGUMENTS

Follow every step in order. Do not skip steps. Do not guess values ? use only data returned by the tools.

@gcavalcante8808
gcavalcante8808 / mellum_tool_test_prompt.md
Created June 9, 2026 01:01
Mellum 2 sidecar tool test prompt

You are auditing the sidecar codebase. Complete all five tasks. Use the exact output format below.

The sidecar codebase root is: /workspace/sidecar

Task 1 — Discovery (glob): Find all .rs files under /workspace/sidecar/sidecar-core/src/adapters. List each path, one per line.

Task 2 — Pattern search (grep): Find every occurrence of `call_tool` across the codebase. For each match report: file path, line number, exact line.

@gcavalcante8808
gcavalcante8808 / dynamodb_boto3_events.txt
Last active December 8, 2025 16:52
Boto3 Dynamodb Watchable Events
provide-client-params.dynamodb.Query
before-parameter-build.dynamodb.Query
before-endpoint-resolution.dynamodb
before-call.dynamodb.Query
request-created.dynamodb.Query
choose-signer.dynamodb.Query
before-sign.dynamodb.Query
before-send.dynamodb.Query
before-parse.dynamodb.Query
response-received.dynamodb.Query
@gcavalcante8808
gcavalcante8808 / pydantic_to_sqlalchemy.py
Last active June 11, 2025 22:59
Coerce pydantic model to SQLAlchemy Table **imperatively**
from sqlalchemy.orm import declarative_base
from sqlalchemy import Text, Integer, JSON, Table, Column
Base = declarative_base()
def convert_pydantic_field_to_sqlalchemy_column(field_name, field_type):
if field_type == str:
return Column(field_name, Text)
@gcavalcante8808
gcavalcante8808 / eol-at-eof.md
Created June 22, 2023 19:39 — forked from camh-/eol-at-eof.md
Please add newlines at end of files

See https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

A newline in a text file is a terminator, not a separator. This means each line should have a newline at the end of it, including the last line of the file.

Many editors automatically add the newline at the end of the file. Some do not. If you can configure your editor to ensure there is always a newline at the end of every line, please do so.

Because many editors do add this newline, if you commit a text file without it, when someone else edits the file, their editor will (correctly) add the newline. This causes a spurious diff in the file. Spurious

Some samurai gif to be used with whatsapp
@gcavalcante8808
gcavalcante8808 / docker_multipass_cloudinit.yaml
Created August 11, 2021 14:21
A docker setup using multipass and cloudinit on MACos (but works fine with Linux as well, just check the path on the mount unit)
#cloud-config
apt:
sources:
docker:
source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFit2ioBEADhWpZ8/wvZ6hUTiXOwQHXMAlaFHcPH9hAtr4F1y2+OYdbtMuth
lqqwp028AqyY+PRfVMtSYMbjuQuu5byyKR01BbqYhuS3jtqQmljZ/bJvXqnmiVXh
{
"definitions": {
"virtualservices.networking.istio.io": {
"properties": {
"spec": {
"description": "Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html",
"properties": {
"exportTo": {
"description": "A list of namespaces to which this virtual service is exported.",
"items": {
@gcavalcante8808
gcavalcante8808 / docker-compose.yaml
Created September 23, 2020 02:01
Depends on based on healthchecks.
version: '2.4'
volumes:
db-data:
services:
db:
image: postgres:11-alpine
environment: