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
| $ollama list | |
| NAME ID SIZE MODIFIED | |
| functiongemma:latest 7c19b650567a 300 MB 15 minutes ago | |
| $ollama run functiongemma | |
| pulling manifest | |
| pulling 415f8f959d80: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 300 MB | |
| pulling 64c834d5c134: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 10 KB | |
| pulling b536e845ddda: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 26 B | |
| pulling d087699a8829: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 468 B |
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. Build image | |
| $docker image build -t demo:1.0 . | |
| # 2. Scan image | |
| $grype demo:1.0 | |
| ✔ Loaded image demo:1.0 | |
| ✔ Parsed image sha256:d9174a6052c58081feb46f149324030dc1b79fe3e084b0b3288912e22780de07 | |
| ✔ Cataloged contents 994d063915c32eed9c71055bc892010324ddaa7ba517e6e94557c528128ccfd0 | |
| ├── ✔ Packages [38 packages] |
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
| package com.example.demotest; | |
| import org.junit.jupiter.api.Test; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.resttestclient.TestRestTemplate; | |
| import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureRestTestClient; | |
| import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureTestRestTemplate; | |
| import org.springframework.boot.test.context.SpringBootTest; | |
| import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; | |
| import org.springframework.test.web.servlet.client.RestTestClient; |
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
| $curl -fsSL https://cli.kiro.dev/install | bash | |
| Kiro CLI installer: | |
| Downloading package... | |
| ✓ Downloaded and extracted | |
| ✓ Package installed successfully | |
| 🎉 Installation complete! Happy coding! |
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
| spring.application.name=otel | |
| # For demo only | |
| management.tracing.sampling.probability=1.0 | |
| management.otlp.metrics.export.step=10s | |
| management.observations.annotations.enabled=true | |
| management.opentelemetry.tracing.export.otlp.transport=http |
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
| services: | |
| postgres: | |
| env_file: | |
| - .env | |
| image: postgres:18 | |
| environment: | |
| - POSTGRES_USER=n8n | |
| - POSTGRES_PASSWORD=n8n | |
| - POSTGRES_DB=n8n |
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
| @Configuration | |
| public class ShareConsumerConfig { | |
| @Bean | |
| public ShareConsumerFactory<String, String> shareConsumerFactory() { | |
| Map<String, Object> props = new HashMap<>(); | |
| props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092"); | |
| props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, | |
| StringDeserializer.class); | |
| props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, |
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
| $bun upgrade | |
| Bun v1.3.0 is out! You're on v1.2.4 | |
| [6.15s] Upgraded. | |
| Welcome to Bun v1.3.0! | |
| What's new in Bun v1.3.0: | |
| https://bun.sh/blog/release-notes/bun-v1.3.0 |
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
| world = "World" | |
| template = t"Hello, {world}" | |
| print(type(template)) | |
| print(list(template)) | |
| print(template.strings) | |
| print(template.values) | |
| print(template.interpolations) | |
| # ผลการ run |
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. ติดตั้งผ่าน Claude Code | |
| $npx playwright init-agents --loop=claude | |
| Need to install the following packages: | |
| [email protected] | |
| Ok to proceed? (y) y | |
| Writing file: .claude/agents/playwright-test-generator.md | |
| Writing file: .claude/agents/playwright-test-healer.md | |
| Writing file: .claude/agents/playwright-test-planner.md |
NewerOlder