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
Created August 7, 2026 04:48
AnyDoc Demo
$npx @firecrawl/anydoc demo.pdf
anydoc: unsupported input: PDF has no extractable text (Scanned, 8 pages): OCR is required
@up1
up1 / 1.txt
Last active August 6, 2026 06:50
Hello TamaClaude
// ติดตั้ง Command line tool
$xcode-select --install
// Clone project จาก Github
$git clone https://github.com/thaitop/tamaclaude.git
$cd tamaclaude
// ทำการติดตั้ง firmware ผ่าน serial port
// และ download file จาก https://github.com/thaitop/tamaclaude/releases/tag/v1.2.0 มาไว้ที่ ~/Downloads/
// ต้องติดตั้ง Python ด้วย
@up1
up1 / 1.txt
Last active August 5, 2026 06:47
Playwright skill
---
name: playwright-ui-test
description: Browser automation testing skill using Playwright for UI testing
---
## Workflow of playwright-ui-test skills
1. Read requirements and identify the UI flows to be tested from <user requirement> and HTML file from user.
2. Generate test cases for each identified flow using the Playwright framework.
3. Run the generated test cases and validate the results
4. If the test cases fail, analyze the failure and fix the issues in the application or test cases and run until all test cases pass successfully.
@up1
up1 / 1.txt
Created August 4, 2026 09:25
Req
# Web dashboard
## User Interface
* Endpoint = `/dashboard`
* Mockup UI from file `mock-ui-1.html`
## User Flow
@up1
up1 / 1.txt
Created August 4, 2026 07:42
Demo skills
---
name: angular-dev
description: Web developer with Angular framework
---
## Workflow of Angular Developer
1. Understand the requirements and design + planning the application architecture based on user requirements
2. Read and analyze Mock User interface from user
3. Create Angular components, services, and modules based on the requirements
4. Implement routing and navigation between different features
@up1
up1 / index.test.ts
Created August 3, 2026 07:07
Cloudflare Test Harness
import { createTestHarness } from "wrangler";
import { beforeAll, afterEach, afterAll, test } from "vitest";
// Initialize the test harness pointing to your Cloudflare Worker config
const server = createTestHarness({
workers: [
{ configPath: "./wrangler.jsonc" } // or wrangler.toml
],
});
@up1
up1 / 1.md
Created August 2, 2026 06:56
MCP 2.0
sequenceDiagram
    participant C as MCP Client
    participant LB as Load Balancer
    participant A as MCP Server A
    participant B as MCP Server B
    participant S as Session Store

    C->>LB: initialize()
 LB-&gt;&gt;A: initialize()
@up1
up1 / 1.txt
Created August 1, 2026 05:30
Claude Desktop Disk Usage and Clean
$du -sh * | sort -rh
10.0G vm_bundles
5.1G Cache
245M claude-code-vm
245M claude-code
@up1
up1 / 1.txt
Last active July 30, 2026 05:55
Codex Security CLI
// Install in prject
$npm install @OpenAI/codex-security
// Run
$npx @openai/codex-security scan --help
codex-security scan — Run a Codex Security scan.
Usage: codex-security scan [repository] [options]
Arguments:
@up1
up1 / 1.js
Last active July 29, 2026 14:44
NodeJS :: Good testing
beforeAll(async () => {
await seedDatabase();
});
describe("GET /users", () => {
test("user exists", async () => {
...
});