Skip to content

Instantly share code, notes, and snippets.

View up1's full-sized avatar

Somkiat Puisungnoen up1

View GitHub Profile
@up1
up1 / 1.txt
Last active May 5, 2025 01:35
Docker MCP Catalog and toolkit
# Pull image
$docker image pull mcp/postgres
Using default tag: latest
latest: Pulling from mcp/postgres
6e771e15690e: Already exists
6943333fe3c9: Downloading 23.82MB/49.62MB
19f059763ac0: Download complete
422fec2897b5: Download complete
3beeba27d5a1: Download complete
@up1
up1 / 1.txt
Last active May 2, 2025 12:03
MCP Server with MongoDB and Redis
$git clone https://github.com/redis/mcp-redis.git
$cd mcp-redis
$docker image build -t mcp-redis .
@up1
up1 / 1.txt
Last active April 30, 2025 16:39
Robot Framework Dashboard
# 1. ติดตั้ง
$pip install robotframework-dashboard
# 2. Run test
$robot demo.robot
# 3. Generate report
$robotdashboard -o output.xml
======================================================================================
@up1
up1 / 1.txt
Last active April 30, 2025 08:48
Queue in Kafka 4.0
unstable.api.versions.enable=true
group.coordinator.rebalance.protocols=classic,consumer,share
@up1
up1 / .cursorrules
Last active April 28, 2025 08:15
Demo with Cursor
Tech Stack:
Frontend: React.js
Frontend testing: Playwright
Backend: Node.js with Express.js
Backend testing: Jest, supertest
Database: Postgresql with pg library
Version Control: Git
Deployment: Docker
@up1
up1 / 1.txt
Last active April 25, 2025 14:13
MCP toolbox with postgresql
$docker compose up -d
$docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
genai-toolbox-db-1 postgres "docker-entrypoint.s…" db 27 minutes ago Up 27 minutes (healthy) 0.0.0.0:5432->5432/tcp
genai-toolbox-toolbox-1 us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:latest "/toolbox toolbox --…" toolbox 27 minutes ago Up 27 minutes 0.0.0.0:5000->5000/tcp
@up1
up1 / 1.txt
Created April 23, 2025 10:43
K6 Studio
$git clone https://github.com/grafana/k6-studio.git
$cd k6-studio
$npm install
$npm start
@up1
up1 / 1.txt
Created April 14, 2025 05:12
Basic PostgreSQL
// 1. Create table
CREATE TABLE orders (
id SERIAL PRIMARY KEY,
customer_id INT NOT NULL,
order_date DATE NOT NULL,
amount DECIMAL(10,2)
);
// 2. Generate test data (100,000 records)
@up1
up1 / compose.yml
Created April 11, 2025 16:07
Keycloak 26.2 + Healthcheck + Docker compose
# https://www.keycloak.org/observability/health
services:
keycloak:
image: quay.io/keycloak/keycloak:26.2
command:
- start-dev
- --import-realm
environment:
KEYCLOAK_ADMIN: admin
@up1
up1 / 1.txt
Last active April 10, 2025 09:42
Install n8n with docker compose
$docker compose up -d
$docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
n8n n8nio/n8n "tini -- /docker-ent…" n8n 15 minutes ago Up 15 minutes 0.0.0.0:5678->5678/tcp