Settings/Setting 23

Mac에서 ngrok으로 로컬 서버 열기

https 웹훅이나 쿠키를 포함한 프론트엔드와의 통신에서 https가 아니면 제한사항이 발생한다.Apple auth와 같이 웹훅 url을 필수로 https를 요구하는 경우.https only 쿠키를 사용하여 credential을 활용하는 프론트엔드와 통신하는 경우.http://localhost, http://192.168.x.x 등에서 프론트엔드와 개발환경을 테스트 하고 싶을 경우 ngrok을 사용하면 유연하게 대응할 수 있다. 설치brew install ngrok 버전 확인ngrok versionls -al ~/Libarary/Application\ Support/ngrok 처음 설치했다면 ngrok.yml 파일이 없을것이다.여기에 auth key를 입력하면 된다. token 발급ngrok 웹페이지에서..

Settings/Setting 2025.08.01

Window) Gemini AI 사용하기

# Gemini 설치npm i -g @google/gemini-cli 파워쉘 관리자모드에서 세팅set-executionPolicy remotesigned # Gemini 실행gemini실행 후 구글로 로그인하면 프롬프트창이 활성화된다.mcp 서버 주입.gemini/settings.json 프로젝트 루트 파일에 위 폴더와 파일을 만든 후, settings.json 파일에 추가하면 제미나이 실행 시 mcp 서버가 추가된다.미결제 시 구글 계정으로 이용. 1일 1,000회 무료미결제 시 사용자 및 입력 정보 수집 및 활용.결제시 API 토큰으로 이용. 정보 수집 및 활용 하지 않음.

Settings/Setting 2025.07.02

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

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