This file contains 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 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 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 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 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 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 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 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) { |
This file contains 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
// เพิ่มข้อมูล | |
$LPUSH datas tx1 | |
$LPUSH datas tx2 | |
$LPUSH datas tx3 | |
$LPUSH datas tx4 | |
$LPUSH datas tx5 | |
// ดึงข้อมูล | |
$LRANGE datas 0 -1 |
This file contains 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 create rspeedy@latest | |
Need to install the following packages: | |
[email protected] | |
Ok to proceed? (y) | |
> npx | |
> create-rspeedy |
NewerOlder