일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- list
- AI
- Container
- DB
- Laravel
- TORCH
- Python
- file
- PostgreSQL
- evaluation
- Converting
- LLM
- judge
- pandas
- pytorch
- Package
- git
- docker
- numpy
- Linux
- enV
- Windows
- KAKAO
- Paper
- format
- Database
- Flask
- GitLab
- CUDA
- Mac
- Today
- Total
목록전체 글 (108)
Daily Develope
Singleton ㅇ 사용 목적 - 하나의 클래스가 오직 하나의 인스턴스만을 가지도록하여, 해당 인스턴스를 전역에서 접근 가능하도록 제공 - 주로 Logging 이나 DB 접근에서 사용. (자주 호출되는 인스턴스가 필요한 경우 정의/사용) ㅇ 장점 - 필요할 때 단일 인스턴스를 생성, 생성된 인스턴스는 메모리에 상주하며 다음 호출시 사용 ㅇ 주의 - 생성된 인스턴스는 메모리에 상주하고 있기 때문에 자원관리 필요 - 하나의 인스턴스 자원을 공유하므로 ripple effect 주의 ㅇ MariaDB 예제 더보기 - Singleton DB Class 정의 import mariadb class MetaSingleton(type): _instances = {} def __call__(cls, *args, **kw..
HTTP Basic: Access deniedㅇ 증상 : git 접근 시 다음과 같은 오류 메시지 출력remote: HTTP Basic: Access deniedfatal: Authentication failed for 'https://...../gitlab/.../....git/' ㅇ 해결 : credential 정보 삭제sudo git config --system --unset credential.helper 'repo_name' does not appear to be a git repository ㅇ 증상 : git의 repository를 찾지 못 함'repo_name' does not appear to be a git repositoryfatal: Could not read from remote ..
예외항목 지정 예시 *.log # 확장자가 log인 파일 예외 !result.log # log 확장자가 예외처리 되었더라도 result.log 파일은 commit dirA/**/* # dirA 폴더 내부 모든 폴더 및 파일 예외적용시 주의사항 : 이미 push된 프로젝트에서는 .gitignore 관련파일을 캐쉬에서 삭제 후 commit 전체목록 갱신 git rm -r --cached . git commit -a -m "set .gitignore" git push -u origin master 특정파일만 예외처리 (예_ temp.log 파일 제외) git rm --cached temp.log echo temp.log >> .gitignore # git status 확인 시 temp.log 파일이 제외(de..
ㅇ 목차 - 신규 생성/등록 - Add / Commit - Merge (합병) 신규 생성/등록 git init git add {file}# 업데이트할 파일 추가 git commit -m "{message}"# 업데이트시 기록할 메시지 등록 git remote add {remote_name} {remote_url}# remote_name으로 원격 저장소 주소 기록 git push -u {remote_name} {branch_name}# remote_name의 branch_name 업데이트 Add / Commit ㅇ 전체 파일 일괄적으로 add 및 commit git commit -a -m "{message}" ㅇ Add된 파일 취소 git restore {file_name} ㅇ Commit 취소 git r..
--- image : maven:latest # 변수 설정 variables: TARGET_DIR : "complete" TESTRESULT_DIR : "target" # 실행 될 스테이지 설정 stages : - build - test - deploy # 매크로 설정 .maven_configure_template : &mvn_conf stage : build artifacts: paths: - $TARGET_DIR # 매크로 로딩 및 스크립트 수행 maven_compile :