This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$git clone https://github.com/grafana/k6-studio.git | |
$cd k6-studio | |
$npm install | |
$npm start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.keycloak.org/observability/health | |
services: | |
keycloak: | |
image: quay.io/keycloak/keycloak:26.2 | |
command: | |
- start-dev | |
- --import-realm | |
environment: | |
KEYCLOAK_ADMIN: admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Test; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.boot.test.web.client.TestRestTemplate; | |
import org.springframework.http.ResponseEntity; | |
import org.wiremock.spring.EnableWireMock; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ขั้นตอนที่ 1 | |
$export ANTHROPIC_API_KEY=<your key> | |
$dagger | |
─ ←↑↓→ move · home first · end last · +/- verbosity=1 · q quit ─────────────────────────────● connect 0.1s | |
● connect 0.2s | |
│ ● connecting to engine 0.0s │✔ connect 0.3s ✔ connect 0.3s | |
Dagger interactive shell. Type ".help" for more information. Press Ctrl+D to exit.\n | |
✔ connect 0.3s ⋈ | |
─ esc nav mode · > run prompt ────────────────────────────────────────────────────────────── |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with Head or UI mode | |
{ | |
"mcpServers": { | |
"playwright": { | |
"command": "npx", | |
"args": [ | |
"@playwright/mcp@latest" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$npm install -g go-mokapi | |
// HTTP server จากไฟล์ Swagger/OpenAPI | |
$mokapi --providers-http-url https://petstore3.swagger.io/api/v3/openapi.json | |
// Apache Kafka จากไฟล์ AsyncAPI | |
$mokapi --providers-file-filename asyncapi.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.System.out; | |
public class Main { | |
void main() { | |
var main = new Main(); | |
var grade = main.calculateGrade(50); | |
out.println(grade); | |
} | |
public String calculateGrade(int score) { |
NewerOlder