Skip to content

Instantly share code, notes, and snippets.

View JenHsuan's full-sized avatar

Sean Hsieh JenHsuan

View GitHub Profile
All at once Rolling Rolling with batch Immutable taffic splitting Blue/green
Failed Deployment Down time Single batch out of service Single batch out of service Minimal Minimal Minimal
Capacity During Deployment 0 -> 100% decrease gradually 100% 100% 100% 100%
Downtime 6 3 2 1 1 1
Deployment speed 6 4 3 4 2 4
Time Cost 1 2 4 3 5 4
Money Cost 1 2 3 4 4 ~ 4.5 5
DNS Change x x x x x o
Rollback Manual redeploy Manual redeploy Manual redeploy Terminate new instances Reroute traffics Swap URL
Rollback speed 3 4 4 6 5 6
.footer {
padding: 80px 0 24px;
width: 100%;
}
.content {
max-width: none;
padding: 0 135px;
}
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Input, theme } from 'antd'
import { SendOutlined } from '@ant-design/icons'
import { IconFacebook } from './components/IconFacebook'
import { IconTwitter } from './components/IconTwitter'
import { IconInstagram } from './components/IconInstagram'
import { IconLinkedin } from './components/IconLinkedin'
import { AppStore } from './components/AppStore'
import { GooglePlay } from './components/GooglePlay'
@use '../../../theme/variables' as *;
.footer {
background-color: #000000;
color: var(--text-color-primary, #fafafa);
padding: 80px 0 24px;
width: 100%;
}
.content {
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Input, theme } from 'antd'
import { SendOutlined } from '@ant-design/icons'
import { IconFacebook } from './components/IconFacebook'
import { IconTwitter } from './components/IconTwitter'
import { IconInstagram } from './components/IconInstagram'
import { IconLinkedin } from './components/IconLinkedin'
import { AppStore } from './components/AppStore'
import { GooglePlay } from './components/GooglePlay'
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Input } from 'antd'
import { SendOutlined } from '@ant-design/icons'
import { IconFacebook } from './components/IconFacebook'
import { IconTwitter } from './components/IconTwitter'
import { IconInstagram } from './components/IconInstagram'
import { IconLinkedin } from './components/IconLinkedin'
import { AppStore } from './components/AppStore'
import { GooglePlay } from './components/GooglePlay'

Check and fix issues for $1 by using test-and-fix agent

Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 283
---
name: test-and-fix
description: Use this agent when you need to test a specific file and automatically fix any errors that are detected. This agent should be used after code changes, when implementing new features, or when you encounter test failures or compilation errors in a specific file. Examples: - After writing a new React component, use test-and-fix to ensure it passes all tests and fix any TypeScript or linting errors. - When a test fails, use test-and-fix to diagnose and resolve the issue. - After modifying utility functions, use test-and-fix to verify functionality and correct any breaking changes.
tools: Glob, Grep, Read, WebFetch, TodoWrite, WebSearch, BashOutput, KillShell, ListMcpResourcesTool, ReadMcpResourceTool, Edit, Write, NotebookEdit
model: inherit
color: blue
---

You are an expert debugging and testing specialist for React TypeScript applications. Your primary responsibility is to test target files and automatically fix any errors that are discovered.

applyTo
**.tsx

React component

  • All react components should follow the existing ESLint rules in this project
  • All react components should function component
  • All react components should use scss module instead of the css file
KMS CloudHSM
Tenancy Multi-Tenant Single-Tenant
Standard FIPS 140-2 Level 3 FIPS 140-2 Level 3
Master keys AWS owned CMK/AWS managed CMK/Customer managed CMK Customer managed CMK
Key types symmetric/asymmetric/digital signing symmetric/asymmetric/digital signing & hashing
Key accessibility accessible in multiple AWS region deploy and managed in a VPC/can be shared accross VPCs (VPC peering)
Crypogrphic acceleration none SSL/TLS acceleration/oracle TDE acceleration
Acess *& authentication AWS IAM You create users and manage their permissions
High avaliability AWS managed service Add multiple HSMs over different AZs
Audit capability CloudTrail/CloudWatch CloudTrail/CloudWatch/MFA support