최신글
- Javascript [JS] Array 중복제거 new Set 이용하기const arr = [ { code: 'a', name: '가나다' }, { code: 'b', name: '라마' }, { code: 'a', name: '가나다' }, { code: 'c', name: '바사' }];const newArr = [...new Set(arr.map((item) => JSON.stringify(item)))].map((item) => JSON.parse(item))
- node npm시 sill idealTree buildDeps에서 멈추는 현상 npm install ts-jest 실행시 sill idealTree buildDeps ~~~ 에서 진행이 안되는 현상이 발생함 해결방법 (packge-lock.json 을 삭제하고 하라는데 안된다 ㅠㅠ) step 1. npm registry 변경 $ npm config set registry https://registry.npmjs.cf/ step2. 다시 시도 $ npm install ts-jest step3. npm registry 원복 $ npm config set registry https://registry.npmjs.org/ 하니까 해결이 되었다!! 참고사이트 https://www.inflearn.com/questions/779041/solved-nestjs-%ED%94%84%EB%A1%9C..
-
AWS
ec2 pem키로 MacOS ssh 접속하기
* 앞서 ec2 인스턴스 생성시 생성한 키페어로 쉽게 터미널 접속하는 방법 (명령어가 길어서 귀찮으니) $ ssh -i 키페어이름.pem ec2-user@{your ec2 public dns} 1. download 받은 펨키를 ~/.ssh/ 폴더로 이동 $ cd Downloads $ mv demo-ec2.pem ~/.ssh/ 2. config 편집후 저장 (권한도 변경) $ vi ~/.ssh/config $ chmod 600 config $ chmod 600 demo-ec2.pem Host 간편하게 입력할 이름 HostName ec2의 IP 주소 User 사용자 계정 IdentityFile ~/.ssh/"pem 파일 이름".pem 3. 접속 $ ssh ec2_demo 참고링크 : https://velog..
-
AWS
EC2 인스턴스 생성
1. 인스턴스 시작 (서울 리전 확인 필!) 2. OS 이미지 선택 (AWS linux) - 기본 선택 3. 키페어 만들기 - 안전하게 ec2에 접속하기 위해서 키페어를 만들어야한다. 4. 하단 설정은 기본으로 선택하고 인스턴스 시작 5. 인스턴스 생성 확인 및 실행
- Vue [vue] ngrok 을 이용해서 외부에서 로컬로 접속하기 ngrok 에 관한건 아래 글 참고https://ksy93.tistory.com/entry/ngrok-%EC%99%B8%EB%B6%80%EC%97%90%EC%84%9C-%EB%A1%9C%EC%BB%AC%EB%A1%9C-%EC%A0%91%EC%86%8D%ED%95%B4%EC%84%9C-%EA%B0%9C%EB%B0%9C%ED%95%98%EA%B8%B0 [ngrok] 외부에서 로컬로 접속해서 개발하기ngrok이란? 외부(Public)에서 로컬에 접속할 수 있게 도와주는 터널링 프로그램 1. ngrok 설치 brew install --cask ngrok cask 가 없으면 설치(*cask: 간단한 명령어 한줄로 맥용 어플을 설치해주는 유틸리티 프.ksy93.tistory.com 아래 설정 추가module.exp..
-
node
[ngrok] 외부에서 로컬로 접속해서 개발하기
ngrok이란? 외부(Public)에서 로컬에 접속할 수 있게 도와주는 터널링 프로그램 1. ngrok 설치brew install --cask ngrokcask 가 없으면 설치(*cask: 간단한 명령어 한줄로 맥용 어플을 설치해주는 유틸리티 프로그램)- brew install cask 2. ngrok 사용법Ngrok을 이용하여 직접 터널링(로컬 서버 포트에 맞게끔)$ ngrok http 3000 --scheme http,https위와같이 나온다면 터널링 완료되었고 외부에서 접근이 가능함http://3ead-125-141-102-87.ngrok.io 만약 아래 사진처럼 인증을 하라고 뜬다면 Sign Up 페이지에서 google이나 github 계정으로 쉽게 가입할 수 있음 계정이 validate 되었다..
인기글
-
JPA [JPA] Entity Map 을 Json 으로 Converter Jpa Entity Column Map을 Json 타입으로 컨버팅하여 넣기 @TypeDef(name = "json", typeClass = JsonType::class) // Entity class 상단에 설정 @Type(type = "json") // column 설정 참고사이트 https://blog.leocat.kr/notes/2020/09/01/hibernate-mapping-json-type-to-java-map [Hibernate] Java Map 으로 json 타입 매핑하기 간혹 entity에 json 필드를 넣어야 할 때가 있다. child가 없는 1차원의 데이터라면 Java Map으로 사용하면 편하기 때문에 Map으로 변환하고 싶을 때는 이렇게 하면 된다. blog.leocat.kr -
Querydsl 자주쓰는 Querydsl 함수/표현식 정리 Expressions.stringTemplate Expressions.dateTemplate MathExpressions DateTimeExpression BooleanExpression StringExpression CaseBuilder ex) new CaseBuilder().when(~~).then(~~).otherwise(~~).as("test") null 일때 coalesce eq === ne !== like 'abc' contains '%abc%' lt = 사용자함수 (ex. date) Expressions.dateTemplate(Date.class, "function('DATE_SUB_INTERVAL',{0}, {1}, DAY)", "2021-01-01 00:00:00", 1)) MySQL56.. -
기타 window nexus download download site : https://help.sonatype.com/repomanager2/download Download Nexus Repository OSS is distributed with Sencha Ext JS pursuant to a FLOSS Exception agreed upon between Sonatype, Inc. and Sencha Inc. Sencha Ext JS is licensed under GPL v3 and cannot be redistributed as part of a closed source work. help.sonatype.com 경로 : @/conf 폴더의 nexus.properties 파일 수정 D:\nexus-2.14.20-02-bundle\nexus..