Skip to content

Instantly share code, notes, and snippets.

View yokawasa's full-sized avatar
:octocat:
debugging

Yoichi Kawasaki yokawasa

:octocat:
debugging
View GitHub Profile
@yokawasa
yokawasa / openai-realtime-agents.md
Last active January 18, 2025 18:00
OpenAI Realtime Agents Samples
@yokawasa
yokawasa / PerformanceTesting.postman_collection.json
Last active December 16, 2024 22:52
Postman Collection for Performance testing demo
{
"info": {
"_postman_id": "cedf3ee2-a25e-4f23-ad84-faab47425225",
"name": "PerformanceTesting",
"description": "# About this collection\n\nThis collection is designed to help you test the performance of your API endpoints with varying sizes of query parameters. The collection contains pre-built requests that simulate large and small query parameters to assess how well your API handles different loads.\n\nUsing this collection, you can identify potential bottlenecks or performance issues in your API, enabling you to optimize and enhance the overall performance.\n\n## **Using the collection**\n\n**Step 1:** Replace the placeholders in the URLs and parameters with your own API base URLs and relevant query parameters.\n\n**Step 2 (optional):** Modify the sizes of the query parameters to reflect your specific use case better. You can create multiple requests with varying parameter sizes to test your API's performance thoroughly.\n\n**Step 3:** Run the collection using Postman's Collection Runner or Postman
@yokawasa
yokawasa / api-contract-samples.md
Created November 18, 2024 22:34
API Contract Samples

OpenAPI Spec

openapi: "3.0.0"
info:
  title: Sample API
  version: "1.0"
paths:
  /user/{id}:
    get:
@yokawasa
yokawasa / README.md
Last active December 8, 2024 22:09
Run all Postman collections in a specific workspace using Postman CLI / あるワークスペースにあるすべてのコレクションをPostman CLIで実行

実行手順

(1) ワークスペースのIDを取得 ワークスペースを開き、「⋯」メニューをクリックして、「Workspace info」をクリックしてください。これでワークスペースIDが表示されます

Screenshot 2024-11-12 at 15 24 58

(2) Postman API Keyを取得 下記ページを参考にAPI Keyを取得してください https://learning.postman.com/docs/developer/postman-api/authentication/

@yokawasa
yokawasa / httpbin-tips.md
Last active October 16, 2024 00:09
httpbin tips

Tips collection of httpbin usage

# status
curl -I -X GET https://httpbin.org/status/404

# cookie
curl https://httpbin.org/cookies

# redirect
@yokawasa
yokawasa / README.md
Last active August 7, 2024 09:44
Efficient API development using Postman, VS Code, and Generative AI

Developing TODO API using Postman, VS Code, and Generative AI

Todo appのためのAPIを開発する

Procedure

  1. GitHub Copilot / ChatGPTにpromptで要件をインプットしTodo app用のOpen API Spec(以下OAS)を作ってもらう
@yokawasa
yokawasa / nodejs-pack-manager.md
Last active February 10, 2025 12:55
Node.js package manager cheat sheet

Node.js package managers cheat sheet

Yarn and npm

Overview

features npm yarn
lock file package-lock.json yarn.lock
using workspaces supported supported
@yokawasa
yokawasa / ghq-tips.md
Last active July 7, 2024 17:37
ghq tips

ghq tips

setup

# install 
brew install ghq

# set ghq root dir
git config --global ghq.root '~/dev/ghq'
@yokawasa
yokawasa / notion-tips.md
Created January 2, 2023 14:47
Notion Tips

Notion Tips

Commands

Open New Windows

  • MacOS: shift + cmd + n
  • Windows: shift + ctrl + n

Switch Between Windows