일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- influxdb 설치
- gcc 업데이트
- snmp test
- g++ 업데이트
- selinux port 등록
- semanage
- telegraf
- linux시간으로 변경
- c3 축 없애기
- InfluxDB
- c3 축 가리기
- centos pyhon 설치
- c3 초
- CentOS7
- python os
- 1697
- 백준
- 정규식 컴파일
- c3 step graph
- regex_search
- python subprocess
- 정규식 활용
- snmp
- grafana dashboard
- python popen
- c3 second
- c++ 정규식
- gcc regex
- 정규식 문자열 출력
- subporcess path
- Today
- Total
목록분류 전체보기 (560)
리셋 되지 말자
dind에서 shell로 변경 기존 .gitlab-ci.yml 스크립트 stages: # List of stages for jobs, and their order of execution - build - test - deploy variables: DOCKER_HOST: tcp://docker:2375 DOCKER_TLS_CERTDIR: "" build-job: # This job runs in the build stage, which runs first. stage: build image: docker:20.10.13 services: - docker:20.10.13-dind script: - echo "Start build" - export AWS_ACCESS_KEY_ID="$AWS_ACCESS_KE..
참고 echo $! : kim-dragon.tistory.com/48 스크립트 get_max_swap_size.py : 0.1초마다 free 명령어를 통해, 현재 사용된 used Swap 크기를 가져와서 max_swap_size 변수를 최대값으로 계속 갱신. signal 등록을 통해 kill 명령어로 프로세스가 종료되면, max_swap_size를 출력하고 종료하도록 설정. import subprocess from time import sleep import signal import sys max_swap_size = 0 def handler(signum, frame): print("kill signal") print(max_swap_size) sys.exit(0) signal.signal(signal...
https://stackoverflow.com/questions/59121161/python-unittest-how-to-assert-the-existence-of-a-file-or-folder-and-print-the-p Python unittest: How to assert the existence of a file or folder and print the path on failure? In a python test case, I would like to assert the existence of a file or folder AND provide a useful error message in case the assertion fails. How could I do this? The followin..
설치 스크립트 #!/bin/bash amazon-linux-extras install -y docker usermod -aG docker ec2-user systemctl enable docker systemctl start docker curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | bash yum install -y gitlab-runner-14.10.0-1 버퍼/캐시 비우기(/swap 파일이 스왑 메모리로 사용되고 있을 경우) echo 3 > /proc/sys/vm/drop_caches swapoff -a swapon /swapfile 스왑파일을 이용한 스왑 메모리 할당 # 2..

임시저장: https://stackoverflow.com/questions/61105333/cannot-connect-to-the-docker-daemon-at-tcp-localhost2375-is-the-docker-daem 참고 공식 홈페이지 : https://docs.gitlab.com/runner/install/linux-repository.html CentOS에 설치 1. repo 설치 curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash 2. gitlab runner 설치 - 최신버전 설치, 특정 버전 설치 방법 # 설치가능한 버전 확인 yum list git..
[백준 1043] 거짓말 - 그래프, 집합, 유니온 파인드(union find), bfs 설명 집합, 그래프(bfs), 유니온 파인드 여러 방식으로 풀 수 있는 문제 여기선 집합을 이용해 풀었다 코드 def solution(n, m, true): # true는 진실을 알고있는 초기 사람들의 집합(set) # 파티들을 저장할 배열 partys = [] # 파티들을 partys에 저장 for _ in range(m): party = list(map(int, input().split()))[1:] partys.append(party) # partys의 각 party와 true에 공통된 사람이 있으면 합친다 # party[0] ~ party[n-1] 까지 n번 반복하면서 각 파티에서 진실을 아는 사람을 전부 합..
https://django.cowhite.com/blog/where-should-we-use-content-types-and-generic-relations-in-django/ Where should we use content types and generic relations in django? | CoWhite Software Who is this tutorial for? This tutorial assumes a basic knowledge of PYTHON and Django. Also it assumes you know how to create models, and manipulate them with basic querysets. If you are not confident about the a..
환경 구성 컨트롤 대상이 되는 리눅스 서버들에 VirtualBox, vagrant, sshpass를 설치한다. 그리고 Django가 설치되는 Controller 서버에는 파이썬을 설치한다. Ubuntu 1. virtualbox 설치 sudo apt update -y sudo apt upgrade -y sudo sh -c 'echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list' wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | s..