전체 글 (40) 썸네일형 리스트형 폐쇄망 Python pip setting 폐쇄망 Python pip setting 1. 폐쇄망이 아닌곳에서 pakage 설치 2. 설치된 모듈을 리스트로 만든다 pip freeze > requirements.txt 3. 모듈 리스트 다운로드 pip download -r requirements.txt 4. 폐쇄망으로 파일들 이동 & 설치 python -m pip install --no-index --find-links="./" -r requirements.txt python -m pip install --no-index --find-links="./" 설치모듈이름 Ubuntu VIM Plugin Vundle Setting sudo apt-get update sudo apt-get upgrade sudo apt-get install git ( git 없을시 진행 ) sudo apt-get install vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim vi ~/.vimrc 아래 항목 입력 후 Plugin 입력 set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' call vundle#end() 저장 후 아래 명령어 수행 vim +PluginInstall +qall - Vim Option " VIM 옵션 syntax on" 구문강조 .. Python configparser Module 1. Python configparser Module 이란? .ini or .cfg 속성 저장 2. Python configparser Module Setup pip install configparser 3. Python configparser Module ## main.py import configparser config = configparser.ConfigParser() config.read('config.ini', encoding='utf-8')#한글이 들어갈 경우 인코딩 값 설정 config['defaults']['username'] ## HiHi config['defaults']['username2'] ## HiHi2 ######################################## #.. Jenkins group permission setting 1. Jenkins Plugin Setup : Role-based Authorization Strategy 2. Configure Global Security Setting 3. Manage and Assign Roles Setting 4. Manage Roles Setting 5. Assign Roles Setting Windows10 Home WSL2 and Ubuntu Setup 1. 버전 체크 windows version 2004 이상 2. Windows 기능 켜기/끄기 1 ) Linux용 Windows 하위 시스템 - On 2 ) 가성 머신 플랫폼 - On 3 ) Windows Restart 3. Windows10 WSL2 설치 1 ) Windows PowerShell ( 관리자 모드 ) dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart - Windows Restart 2 ) WSL2 Linux 커널 업데이.. Python filename pattern module Python filename pattern module 1. glob from glob import glob glob('*.exe') ['hihi.exe', 'bigtrue.exe'] glob('*.txt') ['hoho.txt', 'hehe.txt'] glob(r'C:\H*') ['C:\\Hi', 'C:\\He'] 2. fnmatch import fnmatch import os for file in os.listdir('.'): if fnmatch.fnmatch(file, '*.txt'): print(file) Docker Image 수동 Export / Import 1. Docker Image 수동 Export Portainer에서 2. Docker Image 수동 Import docker load -i ${File} ex) docker load -i docker.tar CentOS7 Python3 Setup 환경 : CentOS7 1. Python Website www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org 2. CentOS Python Setup yum install python3 -y 이전 1 2 3 4 5 다음