반응형

42seoul/42seoul_ 15

git rebase 해결 과정

git fetch git rebase origin/master git add "files" git commit git push -u origin HEAD (현재 브랜치 의미) 먼저 깃 꼬임이 어려운 사람이 읽어봐야 하는 사이트 https://ohshitgit.com 여러 깃에서 발생하는 대표적인 실수에 대한 해결방법을 알려준다 오 쉿! 찰짐 쭉 봤는데 커밋 메시지 고치기, 마스터 브랜치에 잘못 커밋했을 때, 작은 파일을 전 커밋에 같이 붙이기 등 팁이 존재했다. 매우 유용 한국어 버전 : https://ohshitgit.com/ko rebase branch and make pull request git fetch git rebase origin/master git add "files" git commit..

42seoul/42seoul_ 2022.09.28

[Typeorm] UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tablePath' of undefined

typeorm error UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tablePath' of undefined 알고보니 ManyToMany()를 사용할 때는 @JoinTable() 데코레이터가 필요했다. 출처 : 공식 문서 @JoinTable() is required for @ManyToMany relations. You must put @JoinTable on one (owning) side of relation. https://orkhan.gitbook.io/typeorm/docs/many-to-many-relations @ManyToMany 관계를 사용할 때는 @JoinTable()이 반드시 필요하다. 한 쪽에 꼭 집어넣어..

42seoul/42seoul_ 2022.09.20

typeorm error : UpdateValuesMissingError: Cannot perform update query because update values are not defined. Call "qb.set(...)" method to specify updated values. / save를 쓰지 말자

message repository에 객체를 하나 const msg: Message = await this.messageRepository.create({ chatRoom: chatRoom, msg_content: msgContent, date: new Date(), userId: userId, user: user }); await this.messageRepository.save(msg); 입력하려고 save 메소드를 사용했다. 하지만 connected -EHVSvlQ_9WlCCKeAAAB UpdateValuesMissingError: Cannot perform update query because update values are not defined. Call "qb.set(...)" method to..

42seoul/42seoul_ 2022.09.17

Install node.js with 42 homebrew in 42 클러스터 맥

1. 42homebrew를 설치한다. https://github.com/kube/42homebrew GitHub - kube/42homebrew: Install Homebrew on 42 sessions Install Homebrew on 42 sessions. Contribute to kube/42homebrew development by creating an account on GitHub. github.com 2. 설치한 터미널 창을 껐다 킨다. 아까 brew하면 커맨드를 못찾았는데 이제 찾을 수 있다. 3. brew로 설치할 수 있는 패키지 이름을 찾아서 설치한다. brew install node 노드 깔기 4. 또 다시 창을 껐다 키면 npm 명령어가 존재한다. 5. nestjs cli를 설치한..

42seoul/42seoul_ 2022.07.19

내가 까먹지 않으려고 쓰는 42 exam 보는 법

내가 까먹지 않으려고 쓰는 42 exam 보는 법 준비물 A4 펜 시험에 들어가기 1. exam exam 으로 로그인하기 2. 로그인하고 처음 킨 터미널에서 kinit [인트라아이디] 를 실행 3. 명령어를 치면 요구하는 username:[인트라아이디] password:[인트라? 맥로그인?패스워드]를 친다 4. 시험시간에 되면 terminal에 examshell이라고 치기 -> 10분 안에 끝내지 못하면 퇴장 examshell 명령어 status : 상태 보기 grademe : 평가 받기 finish : 끝내기 vim설정하기 경로 위치 ~/.myvimrc 옵션 추가 set nu // 라인 번호 syntax on // 글자 색상 exam rank 04 https://github.com/fballest42/..

42seoul/42seoul_ 2022.07.15

dockerfile 과정 에러 [apt-get update 관련] E: Unable to fetch some archives maybe run apt-get update

Dockerfile 에러 Unable to fetch~~ returned non-zero code:100 E: Failed to fetch http://deb.debian.org ~ E: Unable to fetch some archives maybe run apt-get update or try with --fix -missing? The command /bin/sh -c apt-get update -y && apt-get upgrade -y && apt-get -y install ~~ returned a non-zero code:100 Error 내용은 위와 같다. 해결방법 -y 옵션 위치가 중요했다. -y 옵션 순서를 잘못 써서 생긴 문제였다. apt-get update -y => apt-get -..

42seoul/42seoul_ 2022.07.04

[Inception 42] docker-compose로 wordpress만 올려보기(공식문서 참고)

https://docs.docker.com/samples/wordpress/ Quickstart: Compose and WordPress docs.docker.com 도커 공식 문서에서 wordpress를 docker-compose로 배포해보는 페이지가 있었다. 1. 빈 폴더를 만듭니다. 내가 세팅한 이름은 test_wordpress 해당 폴더에는 이후 생길 yml 파일 외에 아무것도 없어야 합니다. 2. cd [폴더이름] cd test_wordpress 3. docker-compose.yml 파일을 만듭니다. yml, yaml 확장자 모두 상관없습니다. version: "3.9" services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql rest..

42seoul/42seoul_ 2022.06.21

[Inception 42] Virtualbox 화면 크기 키우기

VirtualBox 가상환경 화면 크기가 너무 작은 것이 아쉬워서 화면 크기를 키워보려고 한다. 1. Show Applications에 들어가서 Settings에 들어간다. 2. Settings에서 스크롤 내려 Displays를 클릭한다. 3. Resolution 부분에서 컴퓨터 화면에 맞는 크기를 고른다. 현재 쓰는 맥북이 13인치 에어인데 1400*1050(4:3)을 선택하니까 얼추 맞았다. 그 이상을 클릭하면 오른쪽 부분이 아예 잘려서 보이지 않는다. (혹시 apply가 안 보여서 화면을 바꿀 수 없는 경우 tab키를 눌러서 접근하길 추천) 완전 적용하기 전에 이렇게 팝업창이 한 번 뜨므로 만약 오른쪽 상단 버튼이 안 보이면 Revert Settings를 눌러서 다시 작은 사이즈로 맞추고 작다 싶으..

42seoul/42seoul_ 2022.06.21

[Inception 42] Ubuntu에 Docker 설치하기

저번에 한 일 42 inception 시작. virtualbox 설치 에러 해결 [Inception 42] virtualbox linux-ubuntu 운영체제 만들기 / iso 파일 연결까지 [Inception 42] ubuntu 세팅하고 유저 설정하기 Inception 과제를 위해서 우분투에 도커를 설치해야 한다. 이번에 할 일 : ubuntu에 도커 설치하기 1. 로그인 운영체제를 시작하면 세팅할 때 썼던 유저 이름이 뜬다. 선택하고 설정했던 암호를 써서 로그인한다. 2. Show Applications 처음에는 dock(옆에 아이콘들 명단)에 터미널이 안 보인다. Show Applications 누르고 검색창에 terminal 쳐서 터미널을 실행시킨다. 3. 터미널 실행 실행시키면 터미널 아이콘을 ..

42seoul/42seoul_ 2022.06.21
반응형