수동 설치

mysql --verbose --help | grep my.cnf

brew설치

mdfind -name homebrew.mxcl.mysql.plist

'Infra > database' 카테고리의 다른 글

Postgres function code 보는 법  (0) 2020.10.14
postgres 실행이 안될 경우  (0) 2020.10.12
Can't connect to MySQL server  (0) 2019.09.15
mysql 수동 설치  (0) 2019.09.15

[vue-composition-api] must call Vue.use(plugin) before using any function.

observable객체 reactive, ref등은
반드시 setup 메서드 안에서 불러야 한다.

참조 https://github.com/mdogan/homebrew-zulu

brew tap mdogan/zulu
brew cask install <name>

tap이랑 cask둘중 하나로 설치하는 건줄 알았더니
tap이 선행 되어야 한다.
정확한 건 모르겠지만 tap으로 저장소 주소를 받아야 하는 것 같다.

low level같은 건 프레임웤때문에 수백개가 뜨는 경우도 많다

High이상의 수준만 보고 싶을 것이다.

npm audit | grep -B 1 -A 10 High
{
  "name": "Current TS File",
  "type": "node",
  "request": "launch",
  "args": ["${relativeFile}"],
  "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
  "sourceMaps": true,
  "cwd": "${workspaceRoot}",
  "protocol": "inspector",
}```

'개발환경 설정' 카테고리의 다른 글

nvm 프로젝트별 설정  (0) 2022.05.15
degit - 간편하게 깃 저장소 복사하기  (0) 2020.03.02
vs-code] webpack alias link  (0) 2020.01.01
nginx] proxy_pass 적용 안되는 경우  (0) 2019.11.12
git hub 암호 캐싱하기  (0) 2019.01.27

git clone을 하면 git history까지 다 내려 받고 git remote가 연결되고 git branch가 잡힌다.

degit을 쓰면 단순히 repository 폴더만 가져 올 수 있다.

npm install -g degit```

```shell
degit user/repo```

사용법도 git보다 간단하다.

'개발환경 설정' 카테고리의 다른 글

nvm 프로젝트별 설정  (0) 2022.05.15
VSCODE] typescript debugging configuration  (0) 2020.03.23
vs-code] webpack alias link  (0) 2020.01.01
nginx] proxy_pass 적용 안되는 경우  (0) 2019.11.12
git hub 암호 캐싱하기  (0) 2019.01.27

git config user.name 과 user.email 설정이 잘못되었을 경우 contribution에 표시가 안된다.

1. bare로 clone

git clone --bare https://github.com/user/repo.git cd repo.git

2. branch filtering
your-old-email@example.com을 이전 이메일
Your Correct Name는 바뀐 name
your-correct-email@example.com는 바뀐 이메일

git filter-branch --env-filter '

OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"

if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

3. repository 덮어쓰기

git push --force --tags origin 'refs/heads/\*'

아래 사이트를 참고해서 수정 가능하다.
https://help.github.com/en/github/using-git/changing-author-info

'개발환경 설정 > Git' 카테고리의 다른 글

git terminal 계정변환시 재인증 안될 경우  (0) 2021.02.08
Get Started With Git CLI  (0) 2019.05.19

쿠키에 세션 정보를 담아 놓고 로그인 유지를 판단하는데

origin이 다르면 chrome은 이제 default 상태에서 쿠키를 저장하지 않는다.

요즘은 client와 server url이 다른 경우가 많다.

서버에서 쿠키 설정에 SameSite: 'none'으로 지정해 주어야

cross site에서 쿠키를 저장할 수 있다.

'nodeJS > http transaction' 카테고리의 다른 글

Chrome CORS Policy: Access-Control-Allow-Origin  (0) 2020.02.19
nodeJs http file transfer  (0) 2019.04.25

서버와 통신할 때 credentials: 'include' 설정을 했을 경우

response header의 Access-Control-Allow-Origin: '*' 설정은 사용 할 수 없다.

url을 ,로 연결해도 소용 없다.

서버에서 request header로 들어온 origin을 그대로 반환해 주면 된다.

'*'와 같은 효과가 나는데 보안상 안좋아서 하지 말라는 것이니

whitelist목록을 만들어 놓고 origin이 포함되면 그대로 돌려주게 하면 된다.

node module중 cors에 origin 설정도 이런 식으로 이루어진다.

 

'nodeJS > http transaction' 카테고리의 다른 글

Chrome cookie Policy: SameSite  (0) 2020.02.19
nodeJs http file transfer  (0) 2019.04.25

errorMessage
Resolution method is overspecified. Specify a callback or return a Promise; not both.

it('test method', async done =>
   request(app).get('/version')
       .expect(200, done)
  )```

'done' is used for async test;
but must not be use with async

'nodeJS' 카테고리의 다른 글

axios vs fetch #1  (0) 2019.11.17
npm 설치 가능한 버전 보기  (0) 2019.08.16
Conflicts in NextJs and Routing-Controllers  (0) 2019.07.30
또 다른 circular dependency 처리  (0) 2019.04.09
nodeJs 구조  (0) 2018.04.18

+ Recent posts