전체 글628 SVN - Repository 생성 1. 저장소(Repository) 생성 // SVN home 디렉토리 이동 # cd /home/svn // 저장소 생성 (이름 -> testRepo) # svnadmin create --fs-type fsfs testRepo 파일시스템형식의 저장소를 생성하는데 이름은 testRepo로 지정하였다. 2. svnserve.conf 수정하기 저장소를 생성하였다면 지정한 저장소 이름으로 디렉토리가 생성된것을 확인할 수 있다. 아래 경로로 이동하여 svn 설정파일을 수정하자. // 설정파일 경로로 이동 # cd /home/svn/testRepo/conf # vi svnserve.conf svnserve.conf 아래 내용의 주석을 제거하고 적절하게 변경해 준다. ### This file controls the c.. 2021. 4. 15. [Python] FastAPI 사용법 아래 명령어를 이용하여 fastapi를 설치한다. $ pip install fastapi $ pip install uvicorn[standard] crate a main.py from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Optional[str] = None): return {"item_id": item_id, "q": q} Run it Run the server with: $ uvicorn main:app --rel.. 2021. 4. 13. [2021 읽은 책] 1cm 다이빙 - 태수, 문정 - 행복이란 생각보다 소소한것에서 부터 시작이며, 복잡하게 생각하지 말자 - 요즘 시대에 중요한 것이 무엇인지를 다시 되집어주는 책 (⭐️⭐️⭐️) 2021. 3. 11. [2021 읽은 책] 고독의 즐거움 - 헨리 데이비드 소로 - 자연예찬론자 , 2021년 기준 '나는 자연인이다' 삶을 지향한다 (⭐️⭐️) 2021. 2. 26. [Python] One-line Tree in Python 파이썬 이중 딕셔너리 구조 생성 def tree(): return defaultdict(tree) users = tree() users['harold']['username'] = 'hrldcpr' users['handler']['username'] = 'matthandlersux' print(json.dumps(users)) # result {"harold": {"username": "hrldcpr"}, "handler": {"username": "matthandlersux"}} 2021. 2. 21. [Python] pyinstaller 실행파일 생성 # test.py import datetime if __name__ == "__main__" : print("Start.") cur_time = datetime.datetime.now() print("Current time : %s" % cur_time) print("End.") pyinstaller 설치 pip install pyinstaller exe 파일 만들기 test.py가 있는 디렉토리로 이동하여, pyinstaller 명령어를 입력해줍니다. 참고로 --onefile 이라는 옵션을 넣어주면, 하나의 실행파일로 생성이 됩니다. (참고로, --noconsole 옵션을 넣어주면 콘솔창이 뜨지 않고 실행이 됩니다.) 명령어를 실행하면, 이와같이 dist, build 등 여러개의 파일이 생성됩니다. d.. 2021. 2. 21. 이전 1 ··· 79 80 81 82 83 84 85 ··· 105 다음