Awesome Patrick

Patrick's ramblings

Miniconda를 활용한 초경량 Python3, R Jupiter Notebook 구성

Miniconda 설치 pass Jupyter notebook 용 환경 생성 $ conda create -n notebook python=3 $ conda activate notebook $ pip install --upgrade pip Jupyter notebook 설치 $ pip install jupyter IRkernel 설치 $ conda install r-irkernel 실행 $ jupyter notebook 최소 용량으로 설치는 되나 필요한 패키지 몇 가지 추가하면 ...

Outstanding

눈에 띄기 위한 필수 조건. 남들이 포기한 곳에서도 찬란히 꽃 피워라! 파에게서 배우다

Docker 파일로 저장

Image dump $ docker save -o dump_file_name.tar IMAGE $ docker save IMAGE | gzip > dump_file_name.tgz $ docker load -i dump_file_name.tar $ gunzip -c dump_file_name.tgz | docker load Container dump $ docker export CONTAINER_NAME|CONTAINER_ID > dump_file_name.tar $ docker import dump_file_name.tar

Docker 설정 파일

Docker 데몬의 설정을 변경하기 위해 systemd service 파일을 직접 수정하는 방법은 해당 데몬을 업데이트할 경우 모두 초기화되기 때문에 불편함이 있다. 위치 /etc/docker/daemon.json 내용 { "data-root": "/where/you/want" }

구조체 초기화 방법

C 구조체 초기화 다음 C 구조체 초기화 방법 중 문법에 위배되는 것은? (단, C99 기준) struct MyStruct { int a; int b; }; // method 1 struct MyStruct m1 = {0, 1}; // method 2 struct MyStruct m2; m2 = (struct MyStruct){0, 1}; // method 3 struct { int ...