Skip to content

Instantly share code, notes, and snippets.

View jbgutierrez's full-sized avatar

Javier Blanco Gutiérrez jbgutierrez

View GitHub Profile
@jbgutierrez
jbgutierrez / explicit-enhancement-resolution.md
Created April 20, 2026 13:00
Plan: Explicit Enhancement Asset Resolution — CREMA cross-system change

Plan: Explicit Enhancement Asset Resolution

Problem Statement

Currently, lib-creativitiesjs loads enhancement bundles (JS/CSS) by constructing URLs via convention:

// helpers.js:49 — TODO comment already exists acknowledging this debt
const path = `${context.staticContent}/contents/${enhancementName}/index.js`;
@jbgutierrez
jbgutierrez / teams-reply.md
Created April 17, 2026 15:36
OpenCode command: /teams-reply — Send replies to Teams channel threads with channel memory via MemPalace
description Send a reply to a Teams channel thread. Remembers channels by name so you never need to paste the URL twice.

Message

$ARGUMENTS

Goal

@jbgutierrez
jbgutierrez / zara-cdn-investigation-prompt.md
Created April 1, 2026 08:50
Investigación 360: Incremento anómalo de costes CDN en static.zara.net

Investigación: Incremento anómalo de costes CDN en static.zara.net

Contexto y evidencia de partida

El equipo de infraestructura ha detectado un incremento sostenido de costes en el CDN de Zara (dominio static.zara.net, servido via Akamai + Fastly) desde principios de febrero 2026. El incremento es de aproximadamente +300.000 €/mes respecto al baseline de enero 2026.

Las métricas disponibles en Grafana/Prometheus muestran:

# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
#!/usr/bin/env python3
"""
Script para generar siluetas PNG a partir de PSD.
Extrae la máscara de la capa "PNG" y la exporta.
"""
import sys
from pathlib import Path
from PIL import Image, ImageOps
from psd_tools import PSDImage
wfs = [["ac", nil],
["bk",
[{"workflow_id"=>"image-generate-widths", "conditions"=>{"m"=>"and", "g"=>[{"file_type_in"=>["jpg", "JPG", "jpeg", "JPEG", "png", "PNG"]}]}},
{"workflow_id"=>"image-generate-marketplaces-bk",
"conditions"=>
{"m"=>"and",
"g"=>
[{"file_type_in"=>["jpg", "JPG", "jpeg", "JPEG", "png", "PNG"]},
{"filename_does_not_match"=>"M[0-9]{10}-[a-zA-Z]{1,3}[0-9]{0,2}?[a-zA-Z]?_[a-zA-Z]{2}.(jpg|JPG|png|PNG|gif|GIF|webm|WEBM|mp4|MP4|zip|ZIP)"}]}},
{"workflow_id"=>"video-transcoder", "conditions"=>{"m"=>"and", "g"=>[{"file_type_in"=>["mov", "MOV", "MP4", "mp4"]}]}}]],
<script type="customer-template" include-category="NINO" exclude-category="ZAPATO">
<style>
#ninos-msg {
text-align: center;
}
</style>
<div>NINOS menos ZAPATOS</div>
</script>
<div id="customer-template"> </div>
@jbgutierrez
jbgutierrez / README.md
Created March 3, 2020 16:33
Exercise skeleton

Getting Started

Install dependencies and launch webpack process:

npm install
npm start

Finally, launch your editor of choice and edit index.js, index.scss, and index.html.

@jbgutierrez
jbgutierrez / index.js
Last active January 25, 2018 11:40
Hello World - Passport with LocalStrategy
const express = require('express');
const passport = require('passport');
const app = express();
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const session = require('express-session');
const LocalStrategy = require('passport-local').Strategy;
passport.serializeUser((user, done) => { console.log('serialize'); done(null, user); } );
passport.deserializeUser((user, done) => { console.log('deserialize'); done(null, user); });
@jbgutierrez
jbgutierrez / .eslintrc.js
Last active May 25, 2018 17:22
Distributing Work
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {