일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- docker
- list
- Python
- Package
- Database
- Converting
- judge
- TORCH
- KAKAO
- pytorch
- Linux
- numpy
- PostgreSQL
- Windows
- CUDA
- Mac
- AI
- Laravel
- enV
- DB
- file
- GitLab
- LLM
- pandas
- Paper
- Flask
- evaluation
- git
- format
- Container
- Today
- Total
목록전체 글 (108)
Daily Develope
postgresql DB를 생성하고, adminer 웹 UI를 통해 쉽게 DB를 제어할 수 있는 컨테이너 환경 구성 환경 Docker : version 20.10.13 샘플코드 컨테이너 구성 파일 (db_docker_compose.yaml) 컨테이너 및 가상망 설정 Docker 가상 네트워크 생성 (네트워크명:db-network) adminer와 postgresql 컨테이너 생성 및 가상망과 연결 postgresql 설정 image : postgres alpine 3.18 이미지 port : 호스트 5432 포트와 컨테이너 5432 포트 연결 DB ID/PW : 환경변수 파일(.env)의 값을 불러와 설정 (POSTGRES_USER / POSTGRES_PWD) volume : 환경변수 파일(.env)에 ..
환경Python 3.9.7- modules : psycopg2Postgresql (Container, version:alpine3.18)- host : 127.0.0.1- port : 5432- database : mydb- 컨테이너 배포 샘플코드Connection Classimport psycopg2import loggingclass DBBaseController: def __init__(self, host:str="127.0.0.1", port:int=5432) -> None: self.__connect(host=host, port=port) def __connect(self, host:str="127.0.0.1", port:int=5432): try: ..
방법 1. 내장 property method 클래스의 속성값에 대한 getter, setter, destructor 동작을 method로 정의하고, 내장함수인 property를 사용해 해당하는 속성과 연결시켜 사용. 샘플코드 # Python program showing a use of property() function class Geeks: def __init__(self): self._age = 0 # function to get value of _age def get_age(self): print("getter method called") return self._age # function to set value of _age def set_age(self, a): print("setter metho..
Ubuntu ubuntu : http://kr.archive.ubuntu.com/ubuntu/ ubuntu (security) : http://security.ubuntu.com/ubuntu 카카오 : https://mirror.kakao.com/ubuntu-releases/ Docker : https://download.docker.com/linux/ubuntu
1. 인증서 파일 확인 myssl_cert.pem : 도메인 인증서 myssl_nopass_key.pem : 개인키 인증서 (참고 : nginx의 경우 버전/경우에 따라서 인증서에 비밀번호가 설정된 경우 오류가 발생할 수 있어 비밀번호 제거 후 사용하는 것이 정신건강에 좋다.) 비밀번호 해제 방법 openssl 설치 private key 제거 # 명령 실행 후 인증서 발급시 생성/전달된 비밀번호를 입력 후 비밀번호가 없는 인증서 생성 $ openssh rsa -in myssl_password_key.pem -out myssl_nopass_key.pem 2. 인증서 복사 이후 관리를 위해 가능한 인증서를 한 곳에 모아두도록 하자. # Linux 예시 mkdir /etc/ssl/global cp *.pem ..