티스토리

Just Do It
검색하기

블로그 홈

Just Do It

bigtrue.tistory.com/m

Bigtrue 님의 블로그입니다.

구독자
0
방명록 방문하기

주요 글 목록

  • 폐쇄망 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="./" 설치모듈이름 공감수 0 댓글수 0 2021. 5. 3.
  • 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" 구문강조 .. 공감수 0 댓글수 0 2021. 4. 28.
  • 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 ######################################## #.. 공감수 0 댓글수 0 2021. 4. 14.
  • 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 공감수 0 댓글수 0 2021. 2. 24.
  • 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 커널 업데이.. 공감수 0 댓글수 0 2021. 2. 10.
  • 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) 공감수 0 댓글수 0 2021. 1. 22.
  • Docker Image 수동 Export / Import 1. Docker Image 수동 Export Portainer에서 2. Docker Image 수동 Import docker load -i ${File} ex) docker load -i docker.tar 공감수 0 댓글수 0 2021. 1. 20.
  • 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 공감수 0 댓글수 0 2021. 1. 20.
  • Volta, NodeJs, PM2 Setup 환경 : CentOS7 1. Volta Setup docs.volta.sh/guide/getting-started Getting Started | Volta Getting Started Unix Installation On most Unix systems, you can install Volta with a single command: curl https://get.volta.sh | bash For bash, zsh, and fish, this installer will automatically update your console startup script. If you wish to prevent modi docs.volta.sh curl https://get.volta.sh | bash 2. Nod.. 공감수 0 댓글수 0 2021. 1. 20.
  • JEUS Restart log 누락수정 JEUS Version : JEUS 5.0 (fix #25) jcfg or /${JEUSHOME}/config/${hostname}/JEUSMain.xml 0 공감수 0 댓글수 0 2021. 1. 20.
  • FileZilla Server List Passwd Confirm FileZilla Server List Passwd Confirm 1. C:\Program Files\FileZilla FTP Client\Server.xml 2. 해당 IP 혹은 Name 검색 3. 확인 4. base64 적용되었을시 www.base64decode.org/ 에서 decode 진행 공감수 0 댓글수 0 2021. 1. 19.
  • Portainer Setup Portainer Start Portainer 란? Portainer는 Docker를 관리하는 UI(FrontEnd) Portainer Setup 셋팅 환경 : Linux, Docker 공식사이트 : https://documentation.portainer.io/v2.0/deploy/linux/ docker volume create portainer_data docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce 설치 완료 Docker DashBoard 공감수 0 댓글수 0 2021. 1. 14.
  • Groovy Start Groovy Start Groovy 란? Java 가상 머신에서 작동하는 동적 언어 도메인 전문 언어, 단순화된 문법 - 코드 읽고 유지 보수 용이 대부분 JAVA 소스 파일 확장자 수정 후 사용 가능 Sample (소스 파일명: HelloWorld.groovy) public class HelloWorld { public static void main(String[] args) { println "Hello, World!" } } or println "Hello, World!" ​ Tool Groovy 가장 많이 쓰이는 groovy script 도구 groovy hello.groovy Groovyc Java에서 불러 쓰는 groovy compiler 내용은 자바 소스와 같으나 확장명을 groovy로 저장.. 공감수 0 댓글수 0 2021. 1. 14.
  • Jenkins Config.xml 수정 후 Reload [CLI사용] Jenkins Config.xml 수정 후 Reload [CLI사용] Config.xml 값 수정시 Jenkins 서버에 바로 반영이 진행되지않음 Manager Jenkins -> Reload Configuration from disk 진행 필요 아래 호출로 바로 reload 가능 파일은 http://jenkins/cli/ 에서 down 가능 java -jar jenkins-cli.jar -s [JENKINS_URL] -auth [ID:PW] reload-configuration XML 수정 Code import xml.etree.ElementTree as ET configPath = 'jenkins path' jobName = 'job name' configFile = co.. 공감수 0 댓글수 0 2021. 1. 14.
  • zsh setup 기본이 되는 zsh setup sudo apt install -y zsh wget or curl setup sudo apt install -y wget or sudo apt install -y curl git setup (소스코드가 github에 관리되기 때문에 설치) sudo apt install -y git Oh-My-Zsh Setup via curl or via wget setup sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" or sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mas.. 공감수 0 댓글수 0 2021. 1. 14.
  • Python을 활용하여 Kakao 등록 팀원 UUID 값 가지고오기 Python을 활용하여 Kakao 등록 팀원 UUID 값 가지고오기 팀원 등록 Code import json import requests def getFriendsList(): header = {"Authorization": 'Bearer ' + KAKAO_TOKEN} url = "https://kapi.kakao.com/v1/api/talk/friends" #친구 정보 요청 result = json.loads(requests.get(url, headers=header).text) friends_list = result.get("elements") friends_id = [] print(requests.get(url, headers=header).text) print(friends_list) for fr.. 공감수 0 댓글수 0 2021. 1. 14.
  • Python을 활용하여 Kakao MSG Send Me Python을 활용하여 Kakao MSG Send Me Token 값 발급 Code import os import json import requests def sendToMeMessage(text): header = {"Authorization": 'Bearer ' + KAKAO_TOKEN} ## Bearer 한칸띄기 url = "https://kapi.kakao.com/v2/api/talk/memo/default/send" #나에게 보내기 주소 post = { "object_type": "text", "text": text, "link": { "web_url": "https://developers.kakao.com", "mobile_web_url": "https://developers.kakao.com.. 공감수 0 댓글수 0 2021. 1. 14.
  • Python을 활용하여 Slack MSG Send Python을 활용하여 Slack MSG Send Python Slacker module 설치 pip install slacker from slacker import Slacker token = 'xoxo-토큰값' slack = Slacker(token) slack.chat.post_message('#channelName', 'message_descripton') 공감수 0 댓글수 0 2021. 1. 14.
  • Windows 스케줄러 Python Script 사용 Windows 스케줄러 Python Script 사용 Python script를 Windows 기본 스케줄러로 간단히 등록하여 사용 스케줄러옵션 -> 동작 Click Python Path 실행 Python File Name 실행 Python File Path 끝 공감수 0 댓글수 0 2021. 1. 14.
  • KakaoTalk Proxy Server 구축 환경 Server : 구름IDE OS : Ubuntu 16.04 LTS Proxy Server : Squid CMD sudo apt-get update sudo apt-get upgrade sudo apt-get install squid3 sudo vi /etc/squid/squid.conf #http_access allow manager localhost < -- 주석 #http_access deny manger < -- 주석 http_access allow all < -- 추가 http_port 8080 < -- defalult 3128 에서 ex)8080 change sudo service squid restart 공감수 0 댓글수 0 2021. 1. 14.
  • Python Pyinstaller Control Python Pyinstaller Control Option -w : noconsole -F : onefile pyinstaller -w -F 파일명.py etc import가 없다고하면 아래 —hidden-import=pkg명 추가 pyinstaller -w -F --hidden-import=pkg_resources.py2_warn "Deploy_Control[gui].py" spec file 안에 import sys sys.setrecursionlimit(5000) 공감수 0 댓글수 0 2021. 1. 14.
  • SVN SasLDB User Control SVN SasLDB User Control User 생성 saslpasswd2 -c -u realm ID realm : svn저장소 경로의/conf/svnserve.conf 파일의 realm = realm) User 삭제 saslpasswd2 -d -u realm ID 공감수 0 댓글수 0 2021. 1. 14.
  • Python package environment settings Python package environment settings 설치되어있는 패키지 req.txt 에 저장 pip freeze > req.txt req.txt에 지정된 패키지를 타겟환경에 설치 pip install -r req.txt 패키지에 대한 의존성으로 설치불가 패키지는 수동설치 필요 공감수 0 댓글수 0 2021. 1. 14.
  • Get it from Python Parameter Jenkins Get it from Python Parameter Jenkins import os Hi = os.getenv(&#39;Hi&#39;) print(Hi) 공감수 0 댓글수 0 2021. 1. 14.
  • Python File Searching Python File Searching import os import subprocess def search(dirname): try: filenames = os.listdir(dirname) for filename in filenames: full_filename = os.path.join(dirname, filename) if os.path.isdir(full_filename): search(full_filename) else: ext = os.path.splitext(full_filename)[-1] if ext == &#39;.tar&#39;: # print(full_filename) ## full name file_pathss = full_filename.rstrip(&#39;.tar&#39;).. 공감수 0 댓글수 0 2021. 1. 14.
  • Python Excel Control Python Excel Control from openpyxl import Workbook from openpyxl.styles.borders import Border, Side from openpyxl.styles import PatternFill, Color, Font, Alignment ## 테두리 지정 box = Border(left=Side(border_style="thin", color=&#39;FF000000&#39;), right=Side(border_style="thin", color=&#39;FF000000&#39;), top=Side(border_style="thin", color=&#39;FF000000&#39;), bottom=Side(border_style="thin", colo.. 공감수 0 댓글수 0 2021. 1. 14.
  • Python 개발환경 Setting Python 개발환경 Setting 비주얼 스튜디오 코드(Visual Studio Code) 설치 아래의 경로에서 비주얼 스튜디오 코드(Visual Studio Code)를 다운로드 받아 설치 한다. https://code.visualstudio.com/ 파이썬(Python) 설치 아래의 경로에서 파이썬(3.X)를 설치 한다. https://www.python.org/downloads/ VSCode Extension Setting 비주얼 스튜디오 코드(Visual Studio Code)에 파이썬(Python) 확장(Extension) 설치 1) 메뉴 > 보기 > 확장 2) 검색어에 python 입력 3) Python(Don Jayamanne) 설치 공감수 0 댓글수 0 2021. 1. 14.
  • Python PyAutoGUI Control Python PyAutoGUI Control Python PyAutoGUI install pip install pyautogui https://pypi.org/project/PyAutoGUI/ Python PyAutoGUI Keyboard and Mousee Control import pyautogui # Move the mouse to the x, y coordinates 100, 150. pyautogui.moveTo(100, 150) # Click the mouse at its current location. pyautogui.click() # Double click the mouse at the pyautogui.doubleClick() # Click the mouse at the x, y coo.. 공감수 0 댓글수 0 2021. 1. 14.
  • Python PowerShell Python PowerShell import subprocess subprocess.call(["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ls"]) 공감수 0 댓글수 0 2021. 1. 14.
  • Real-time Python Jenkins Build Status Check Real-time Python Jenkins Build Status Check import jenkins ## Jenkins Info Jserver = jenkins.Jenkins(&#39;url&#39;, username=&#39;admin&#39;, password=&#39;admin&#39;) while True: lastBuild = Jserver.get_job_info(&#39;JobName&#39;)[&#39;lastBuild&#39;][&#39;number&#39;] url = Jserver.get_build_info(&#39;JobName&#39;, lastBuild) if url[&#39;building&#39;] == True: print(&#39;Jenkins Job Building .. 공감수 0 댓글수 0 2021. 1. 14.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.