Settings 26

Window) batch파일 만들기

메모장에 내용을 작성한다.txt 확장자를 bat로 바꾼다.@echo offrem 폴더 이동cd /d "C:\Users\%USERNAME%\Desktop"rem cmd 로그 출력echo [Notice] Wait 10 seconds for program to turn on...rem 타임아웃 -> 블라킹 걸린다.timeout /t 10 /nobreak >nulrem exe파일 실행start test.exerem 새 cmd창 열어서 pm2 실행cd /d "C:\Users\%USERNAME%\Desktop\node\test-project"npm run build && start cmd /k "pm2 start C:\Users\%USERNAME%\Desktop\node\test-project\ecosystem.c..

Settings/Setting 2025.02.25

Window nginx loadbalancing test in localhost

1. 다운로드 및 환경변수 추가https://nginx.org/en/download.html nginx: download nginx.org C 폴더에 압축 해제 환경변수 추가2. 설정파일(nginx.conf) 설정 http 블락에 아래 설정 내용을 추가한다.클라이언트는 5000번 포트로 접근을 시도하고, nginx에서 4001번과 4002번 포트의 서버에 배분한다.# nginx.conf# 5000번 포트로 접속된 클라이언트를 4001, 4002 포트 서버로 리버스프록시...http { upstream local_test_server { # default: 라운드로빈 server localhost:4001; server localhost:4002; } server ..

Settings/Setting 2025.01.17

Window Powershell -> git ssh-add 사용하기

0. 에러1. ssh-agent 서비스가 사용중인지 확인한다.# ssh-agent 서비스 작동 확인Get-Service ssh* 2. 관리자 권한으로 파워쉘을 실행하고 아래 서비스를 실행한다.Set-Service -Name ssh-agent -StartupType AutomaticStart-Service ssh-agent3. 실행 확인 4. .ssh 폴더에 config 파일을 알맞게 수정한다.# config# JuzdaluaHost github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa_juzdalua

Settings/Setting 2025.01.10

Window Powershell 명령어 자동화 파일 만들기

Git 계정이 여러개일때 하나하나 명령어를 치는게 귀찮아서 명령어를 실행하는 파일을 만들었다. # 파일 생성# New-Item [파일명]New-Item ./git_user_config.ps1 # 파일 열기notepad ./git_user_config.ps1# 명령어 추가git config --global user.name [USER_NAME]git config --global user.email [EMAIL] # 파일 실행./git_config_user.ps1 생성한 .ps1 파일을 실행하면 작성한 명령어가 실행된다.# 변경 확인git config --global -l

Settings/Setting 2025.01.10

Window Powershell - Oh My Posh 설치

Git bash를 사용하다가 복붙 단축키도 계속 헷갈리고, 로딩이 느려 기본 파워쉘을 사용하기로 했다.1. Oh My Posh 설치winget install JanDeDobbeleer.OhMyPosh -s winget2. Font 설치 & 적용oh-my-posh font install 3. 설치 확인아래 명령어로 해당 테마가 보이면 기본 테마로 설치가 됐다.# 설치 확인oh-my-posh init pwsh | Invoke-Expression4. 테마 적용https://ohmyposh.dev/docs/themes Themes | Oh My PoshOh My Posh comes with many themes included out-of-the-box. Below are some screenshots of t..

Settings 2025.01.08

C++ 20 적용하기

g++ 13.1.0버전이 설치되어있는 상태라면 바로 적용이 가능하다.https://juzdalua.tistory.com/179 VSCode - C++ 시작하기1. 컴파일러 설치 https://code.visualstudio.com/docs/languages/cpp C++ programming with Visual Studio CodeFind out how to get the best out of Visual Studio Code and C++.code.visualstudio.com  MSYS2를 통해 MinGW 설치하기)- MSYS2 다운로드juzdalua.tistory.com Visual Studio 2022VSCode// c_cpp_properties.json{ ... "cpp..

Settings/Setting 2024.09.14

VSCode - VS 2022 단축키 정리

VSCodeVS 2022같은 단어 커서Ctrl + DAlt + Shift + .주석Ctrl + /Ctrl + K + C주석 해제Ctrl + /Ctrl + K + U라인 복사Alt + ↓Ctrl + DPrettierAlt + Shift + FCtrl + K + D             https://code.visualstudio.com/docs/getstarted/tips-and-tricks Visual Studio Code Tips and TricksVisual Studio Code Tips and Tricks for power users.code.visualstudio.com https://learn.microsoft.com/ko-kr/visualstudio/ide/default-keyboard-sh..

Settings/Setting 2024.07.29

VS2022) 다른 프로젝트, 라이브러리 참조 / 출력 폴더 설정

폴더 구성은 다음과 같다.Binary: 출력 파일을 모아두는 폴더DummyClient, GameServer: 프로젝트ServerCore: 정적 라이브러리(lib)Libraries: 빌드 파일을 모아두는 폴더다른 프로젝트 참조하나의 솔루션 하위에 2개의 프로젝트와 라이브러리를 구성했을 때, 참조하는 방법이다.  GameServer 프로젝트의 속성에서 "포함 디렉터리", "라이브러리 디렉터리"를 수정한다. pch.h 파일에 라이브러리 위치와 참조할 헤더를 include한다.// pch.h#pragma once#define WIN32_LEAN_AND_MEAN #ifdef _DEBUG#pragma comment(lib, "Debug\\ServerCore.lib")#else#pragma co..

Settings/Setting 2024.07.29