분류 전체보기 (2546) 썸네일형 리스트형 [python] 파이썬 로또 번호 생성기 파이썬 로또 번호 생성기lotto_v1.py 생성import random### 로또 번호 생성def lotto_numbers(): numbers = random.sample(range(1, 46), 6) numbers.sort() print(numbers)### 로또 시행 횟수def lotto_count(): count = int(input("시행 횟수 : ")) prin.. python 모듈 탐색 경로 찾기 python 모듈 탐색 경로 찾기 테스트 환경 $ python --version Python 3.9.13 파이션 3.9의 sys.path 값 - 임포트할 모듈 경로 python import sys for place in sys.path: print(place) $ python Python 3.9.13 (main, Aug 7 2022, 01:19:39) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> for place in sys.path: ... print(place) ... /opt/homebrew/Cella.. macOS에서 Ansible을 설치하는 방법(Homebrew 기준) macOS에서 Ansible을 설치하는 방법테스트 환경운영체제 정보system_profiler SPSoftwareDataType | egrep 'System Version' System Version: macOS 12.5 (21G72)Homebrew를 이용한 Ansible 설치설치 가능 패키지 확인brew search ansible==> Formulaeansible ansible-cmdb ansible-language-server ansible-lint ansible@2.8 ansible@2.9==> Casksansible-dk기본적으로 ansible 최신 버전을 설치하는 것을 권장합니다.특정 레거시 환경이 아니라면 ansible@2.x는 사용하지 않는 것이 좋습니다... macOS 버전 정보 확인(command) macOS 버전 정보 확인(command)macOS 버전 확인$ sw_vers -hUsage: sw_vers [-productName|-productVersion|-buildVersion] sw_vers$ sw_versProductName: macOSProductVersion: 12.5BuildVersion: 21G72system_profiler 명령$ system_profiler -hUsage: system_profiler [-listDataTypes] system_profiler [-xml | -json] [-timeout n] [-detailLevel n] system_profiler [-xml | -json] [-timeout n] [dataType1 ... dataTypeN.. [url] 코드로서의 다이어그램(Diagram as Code) 코드로서의 다이어그램(Diagram as Code)https://blog.bytebytego.com/p/diagram-as-code?fbclid=IwAR1B-4U1aOf7lssmFww7SRJ0GqMsYw8sOwIhuH0ELgYgOqOIT4ban3edJIU Diagram as Code6 different ways to turn code into beautiful architecture diagramsblog.bytebytego.com gitlab ssh를 사용하여 미러링 구성(gitlab 리포지토리 미러링) gitlab ssh를 사용하여 미러링 구성(gitlab 리포지토리 미러링)GitLab 미러링은 외부 Git 리포지토리(예: GitHub, Bitbucket)와 GitLab 사이의 리포지토리 동기화를 허용합니다.[구성]원본 리포지토리 : gitlab-mirror-source미러 리포지토리 : gitlab-mirror-target원본 리포지토리 저장소 설정프로젝트 > gitlab-mirror-source > 저장소 설정- 미러 리포지토리 SSH URL 필요미러링 저장소 설정Git repository URL(Git 저장소 URL)Mirror direction(미러 방향)Detect Host Keys(호스트 키 발견)Authentication method(인증 방법)미러링 설정 완료미러 리포지토리 저장소 설정프.. Let's Encrypt(certbot) SSL 인증서를 발급하는 방법 Let's Encrypt(certbot) SSL 인증서를 발급하는 방법Let's Encrypt는 무료로 SSL/TLS 인증서를 발급하는 공개 기관으로, Certbot라는 도구를 통해 간단하게 SSL 인증서를 발급할 수 있습니다.PluginAuthInstNotesChallenge types(and port)apacheYYApache를 사용하여 인증서 획득 및 설치를 자동화합니다.http-01(80)nginxYYNginx로 인증서 획득 및 설치를 자동화합니다.http-01 (80)webrootYN이미 실행 중인 웹 서버의 webroot 디렉토리에 기록하여 인증서를 얻습니다.http-01(80)standaloneYN"standalone" 웹 서버를 사용하여 인증서를 얻습니다. 포트 80을 사용할 수 있어야 합.. Mac에서 IPSec VPN(VPN 클라이언트) 구성 Mac에서 IPSec VPN(VPN 클라이언트) 구성 Configure MAC Built in Client We will now configure the MAC Built in Client. Step 1 Navigate to the apple icon in the tool bar. Choose System Preferences. Step 2 Navigate to Network Step 3 Go to Add button and then select interface tab will appear. Step 4 Select Interface as VPN, VPN Type as Cisco IPSec, and enter the Service Name to match the Tunnel name that was c.. 이전 1 ··· 161 162 163 164 165 166 167 ··· 319 다음