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
| { | |
| "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", | |
| "bomFormat": "CycloneDX", | |
| "specVersion": "1.6", | |
| "version": 1, | |
| "serialNumber": "urn:uuid:eb4d5f8f-8960-48e3-b2b1-78851025f1b0", | |
| "metadata": { | |
| "timestamp": "2026-06-10T08:12:33.759Z", | |
| "tools": { | |
| "components": [ |
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
| { | |
| "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", | |
| "bomFormat": "CycloneDX", | |
| "specVersion": "1.6", | |
| "version": 1, | |
| "serialNumber": "urn:uuid:eb4d5f8f-8960-48e3-b2b1-78851025f1b0", | |
| "metadata": { | |
| "timestamp": "2026-06-10T08:12:33.759Z", | |
| "tools": { | |
| "components": [ |
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 container run -d -p 6379:6379 redis:8.8 | |
| $docker container ps | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| 89bdbf4df9c9 redis:8.8 "docker-entrypoint.s…" 15 seconds ago Up 15 seconds 0.0.0.0:6379->6379/tcp, [::]:6379->6379/tcp pensive_mendel |
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
| pm.test("Status code is 200", function () { | |
| pm.response.to.have.status(200); | |
| }); | |
| pm.test("Response time is less than 1sec", function () { | |
| pm.expect(pm.response.responseTime).to.be.below(1000); | |
| }); | |
| pm.test("Response matches JSON schema", function () { | |
| const schema = { |
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 { test, expect } from '@playwright/test'; | |
| test('Buy coffee with Espresso and Americano, total $17', async ({ page }) => { | |
| await page.goto('https://seleniumbase.io/coffee/'); | |
| await page.locator('[data-test="Espresso"]').click(); | |
| await page.locator('[data-test="Americano"]').click(); | |
| await expect(page.getByLabel('Cart page')).toContainText('cart (2)'); | |
| await page.getByRole('link', { name: 'Cart page' }).click(); | |
| await expect(page.locator('[data-test="checkout"]')).toContainText('Total: $17.00'); | |
| await page.locator('[data-test="checkout"]').click(); |
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
| $ijhttp demo.http | |
| ┌─────────────────────────────────────────────────────────────────────────────┐ | |
| │ Running IntelliJ HTTP Client with │ | |
| ├────────────────────────┬────────────────────────────────────────────────────┤ | |
| │ Files │ demo.http │ | |
| ├────────────────────────┼────────────────────────────────────────────────────┤ | |
| │ Public Environment │ │ | |
| ├────────────────────────┼────────────────────────────────────────────────────┤ | |
| │ Private Environment │ │ |
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
| # Report management web | |
| ## Technology stack | |
| * Python | |
| * Web framework: Flask | |
| * https://flask.palletsprojects.com/en/stable/ | |
| * Use openai library | |
| * https://pypi.org/project/openai/ | |
| ## Features |
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. แต่ละ table มีจำนวน row เท่าไร มี size ของข้อมูลเท่าไร | |
| SELECT relname AS table_name, | |
| pg_size_pretty(pg_total_relation_size(relid)) AS total_size, | |
| n_live_tup AS estimated_rows | |
| FROM pg_stat_user_tables | |
| ORDER BY pg_total_relation_size(relid) DESC; | |
| ตัวอย่างผลการทำงาน | |
| "customers" "20240 MB" |
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
| --- | |
| name: Neon Tokyo — Daybreak | |
| colors: | |
| surface: '#fcf8ff' | |
| surface-dim: '#d9d7f4' | |
| surface-bright: '#fcf8ff' | |
| surface-container-lowest: '#ffffff' | |
| surface-container-low: '#f5f2ff' | |
| surface-container: '#efecff' | |
| surface-container-high: '#e8e5ff' |
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
| @AnalyzeClasses(packages = "com.example.demoarch") | |
| public class ArchitectureTest { | |
| @ArchTest | |
| static final ArchRule layer_dependencies = layeredArchitecture() | |
| .consideringAllDependencies() | |
| .layer("Controller").definedBy("..controller..") | |
| .layer("Service").definedBy("..service..") | |
| .layer("Repository").definedBy("..repository..") |
NewerOlder