신뢰성 있고 빠르게 Nginx 설정 파일을 json 형식 데이터로 파싱 하고, 반대로 빌드할 수 있는, Python 모듈 crossplane을 소개합니다. Nginx text 설정을 json 형식 데이터로 변환 crossplane parse --indent 4 --include-comments /home/apps/nginx/conf/nginx.conf > nginx.conf.json Nginx Json 형식 설정 데이터를 text 설정으로 변환 crossplane build --stdout nginx.conf.json nginxinc/crossplane Quick and reliable way to convert NGINX configurations into JSON and back. - nginxinc..
fabric 설치 1pip install fabriccs install.py(fabfile.py) 스크립트 작성123456789101112131415161718192021222324252627from fabric.state import outputfrom fabric.api import run, env, put, sudo #env.hosts=[# "root@server-001.test.com"#]#env.password = "passwd" #env.warn_only = True#output.status = False#output.everything = Falseenv.disable_known_hosts = Trueenv.reject_unknown_hosts = False def install_daemon..
https://github.com/purcell/airspeed 1234567891011121314import airespeed t = airspeed.Template("""Old people:#foreach ($person in $people) #if($person.age > 70) $person.name #end#endThird person is $people[2].name""")people = [{'name': 'Bill', 'age': 100}, {'name': 'Bob', 'age': 90}, {'name': 'Mark', 'age': 25}]print t.merge(locals()) Colored by Color Scriptercs 123456789 Old people: Bill Bob Thi..
- Total
- Today
- Yesterday
- deview
- RESTful
- error
- 번역
- File
- httpd
- limits
- Python
- MariaDB
- check
- mysql
- PowerShell
- Windows
- Module
- Web
- code
- command
- 명령어
- engineering
- client
- 예제
- apache
- 이슈처리
- monitoring
- 외부링크
- configuration
- 코드
- example
- Ansible
- Linux
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |