Settings/Setting 20

Class) Singleton 사용하기

1. 싱글톤 객체 선언 2. 싱글톤 객체 생성 3. 싱글톤 객체 불러오기 및 사용 먼저 클래스를 생성한다. // src/Singleton.ts export type redisType = ReturnType // 싱글톤 객체 선언 export class Singleton { User: UserModel; constructor(connection: ConnectionPool, redisClient: redisType) { this.User = new UserModel(connection, redisClient); } } let modelManager: ModelManager; // 싱글톤 객체 생성 export const initModel = (connection: ConnectionPool, redisCl..

Settings/Setting 2023.06.29

Windows 10) Home edition에 ubuntu, oh my zsh 설치하기

windows 10 Home edition에서 설치했다. 1. vsc 설치 https://code.visualstudio.com/ 2. wsl2 설치 https://learn.microsoft.com/ko-kr/windows/wsl/install 자동으로 wsl2로 적용됨. 3. ubuntu 18.04 설치 후 재부팅 - ms store 0x80370102 에러가 날 경우 제어판-프로그램-기능 켜기/끄기에 Hyper-V가 없다면 BIOS 세팅에서 SVM mode를 켜주면 된다. (amd 기준, 타 cpu는 가상머신 켜기) 4. terminal 설치 - ms store 탐색기에 shell:AppsFolder 주소로 이동하여 바탕화면에 바로가기를 만들 수 있다. 5. 터미널에서 우분투 기본으로 설정 및 실행..

Settings/Setting 2023.06.28

img) 구글 이메일에서 이미지 링크가 깨질 때

sendgrid를 이용해서 구글 주소로 메일을 발송했다. ex) test@gmail.com 구글에서 메일을 받으면 img 태그의 이미지가 깨진다. 검색을 해보니 구글 자체에서 프록시검증이라고 해야하나, 필터로 거른다고 한다. 그래서 구글 블로그에 이미지를 올린 후, 구글에서 인증된(?) 이미지를 사용하면 된다. https://blogger.googleusercontent.com/ 위 사이트에 방문하여 블로그를 개설하고 이미지를 등록하면 다음과 같은 주소로 등록된다. https://blogger.googleusercontent.com/img/~~~.png 메일 컨텐츠에서 를 사용하면 이미지가 문제 없이 나온다.

Settings/Setting 2023.02.22

Terminal) Oh my zsh, power level 10k 설치하기

https://github.com/ohmyzsh/ohmyzsh GitHub - ohmyzsh/ohmyzsh: 🙃 A delightful community-driven (with 2,100+ contributors) framework for managing your zsh config 🙃 A delightful community-driven (with 2,100+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth... github.com 터미널에서 curl로 클론을 받는다. sh -c "$..

Settings/Setting 2023.01.31