전체 글 586

Ubuntu 18.04 - python (django) server setup

Python setup우선 apt-get update, upgrade를 비롯해 pip3을 설치하는 등 기본적인 절차 이후 파이썬, pip 버전을 확인해준다.sudo apt-get update sudo apt-get -y upgrade # check python version python3 --version # install pip sudo apt-get install -y python3-pip pip3 --version # Install more packages and dev tools for python sudo apt-get install build-essential libssl-dev libffi-dev python-dev Virtual envpyenv, virtualenv 등 원하는 env 설치 ..

backend/ubuntu 2019.01.24

python: distributing package

1. Creating setup.py다양한 정보들을 포함시킨 setup.py 파일을 만든다. 해당 패키지의 버전, 이름 등을 알려준다.import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="example_package", version="0.1.0", author="bartkim0426", author_email="bartkim0426@gmail.com", description="short description", long_description=long_description, long_description_content_type="text/markdown", package..

backend/python 2018.12.19

rust: Mac OS X에서 rust 설치하기

다음 명령어로 rustup, cargo, rustc를 간단하게 설치 가능하다.curl https://sh.rustup.rs -sSf | sh 이후 rustc -v로 설치가 되어있는것을 확인할 수 있다.$rustc -v rustup 1.15.0 (f0a3d9a84 2018-11-27) The Rust toolchain installer USAGE: rustup [FLAGS] FLAGS: -v, --verbose Enable verbose output -h, --help Prints help information -V, --version Prints version information SUBCOMMANDS: show Show the active and installed toolchains update Upd..

backend/rust 2018.12.07

VIM: git 커밋시 72자 넘어가는 부분 하이라이팅하기

우선 vim에서의 git commit 메세지는 syntax 디렉토리의 gitcommit.vim 파일에서 설정되어있다.해당 directory는 보통 ~/.vim 안에 있지만 neovim 등은 아닐 수도 있다. 그럴 경우 vim 창에서 :echo $VIMRUNTIME 명령어를 실행시킨 후 나온 디렉토리에 들어가면 찾을 수 있다..../syntax/gitcommit.vim 파일에 다음을 추가해준다.... syn clear gitcommitSummary syn match gitcommitSummary "^.\{0,72\}" contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell 첫 번째 줄의 72자가 넘어가면 색상을..

tools/vim 2018.12.04