A informative warehouse for engineer.
- excalidraw
- JSON Formatter
- readme.so
- Free Faker API
- CRON tab
- JSON Crack
- coolors
- converter
- patterns.dev
- docker-cheatsheet
- erd-dbdiagram
- eraser-io
- PlantUML
- Hash Online
https://www.youtube.com/watch?v=KwYqtbSwnH8&t=90s&ab_channel=marsela
https://ohmyz.sh/
https://dev.to/hornet_daemon/git-commit-patterns-5dm7
Custom snippets
File -> Preferences -> Configure User Snippets -> typerscriptreact.json
{
"Typescript React Function Component": {
"prefix": "fc",
"body": [
"import { FC } from 'react'",
"",
"interface ${TM_FILENAME_BASE}Props {",
" $1",
"}",
"",
"const $TM_FILENAME_BASE: FC<${TM_FILENAME_BASE}Props> = ({$2}) => {",
" return <div>$TM_FILENAME_BASE</div>",
"}",
"",
"export default $TM_FILENAME_BASE"
],
"description": "Typescript React Function Component"
},
}
Transform a variable to title-case
{
"Typescript React Layout Component": {
"prefix": "lc",
"body": [
"import { FC, ReactNode } from 'react'",
"",
"interface ${TM_FILENAME_BASE/([a-z]*)-*([a-z]*)/${1:/capitalize}${2:/capitalize}/g}Props {",
" children: ReactNode",
"}",
"",
"const ${TM_FILENAME_BASE/([a-z]*)-*([a-z]*)/${1:/capitalize}${2:/capitalize}/g}: FC<${TM_FILENAME_BASE/([a-z]*)-*([a-z]*)/${1:/capitalize}${2:/capitalize}/g}Props> = ({ children }) => {",
" return <div>{children}</div>",
"}",
"",
"export default $TM_FILENAME_BASE"
],
"description": "Typescript React Function Component"
},
}
Google - Authorized redirect URIs
- https://console.cloud.google.com/apis/dashboard?pli=1
- http://localhost:3000/api/auth/callback/google
DOCKER_USER=yky32
SVC_NAME=user-auth-ext
# Verify
echo $DOCKER_USER $SVC_NAME
docker build -t $SVC_NAME .
docker tag $SVC_NAME $DOCKER_USER/$SVC_NAME:latest
docker push $DOCKER_USER/$SVC_NAME
kubectl apply -f ./$SVC_NAME.yaml
svc-url
<service-name>.<namespace>.svc.cluster.local:<service-port>
http://example-service.default.svc.cluster.local:9000
http://uaa-svc/oauth2/token
# http://{kind:service.metadata.name}:port/suffix ___ default-80-no-need-add