1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374Function RegExpTest(Pattern, Str) Dim RegExp SET RegExp = New RegExp RegExp.Pattern = Pattern RegExp.IgnoreCase = True RegExpTest = RegExp.Test(Str) SET RegExp = NothingEnd Function Function in_array(element, arr) in_array = False For i=0 To Ubound(arr) If Tr..
1234567891011121314151617181920212223242526272829303132333435 function recurse_copy($src,$dst,$overwrite=TRUE) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { recurse_copy($src . '/' . $file,$dst . '/' . $file, $overwrite); } else { if($overwrite) { copy($src . '/' . $file,$dst . '..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263$ScriptBlock = { param( [Parameter(Position=0, Mandatory=$false)][int]$threadNum=$(throw "threadNum param is not null"), [Parameter(Position=0, Mandatory=$false)][string]$targetServer=$(throw "targetServer param is not null"), [Parameter(Position=0, Mandatory=$false)][string]$comm..
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..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149import pprintfrom pyparsing import Word, Literal, Forward, ..
pyparsing Examples 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107# jsonParser.py## Implementation of a simple JSON parser, returning a hierarchical# ParseResults object support both list- and dict-style data access.## Copyright 200..
1. 개요PHP Restful API 및 Swagger UI 제공을 위한 Silex 프레임워크 설치 및 셋팅 방법Silex 프레임워크, Swagger UI를 이용한 API 개발 방법2. 셋팅2.1. Silex 프레임워크 설치vi /home/apps/php/lib/php.ini- allow_url_fopen = Off+ allow_url_fopen = On mkdir /home/dsan/program/www/apicd /home/dsan/program/www/apicurl -s https://getcomposer.org/installer | phpphp composer.phar require silex/silexphp composer.phar require jdesrosiers/silex-swagger-p..
1. 개요파이썬을 데몬 개발을 하다 보면, 해당 데몬이 문제를 메모리를 많이 먹거나, 프로세스를 너무 많이 생성하거나, 파일을 너무 많이 오픈하여, 서버 전체에 문제를 일으키는 경우가 발생하는데, 이를 해결하기 위한 방법을 찾아보았다.2. Resource limitshttps://docs.python.org/2/library/resource.htmlhttp://pythonforbiologists.com/index.php/measuring-memory-usage-in-python/import resourceprint resource.getrlimit(resource.RLIMIT_AS)print resource.getrusage(resource.RUSAGE_SELF)resource.setrlimit(reso..
- Total
- Today
- Yesterday
- File
- engineering
- 예제
- PowerShell
- monitoring
- Web
- configuration
- error
- Python
- Windows
- 명령어
- 이슈처리
- 외부링크
- check
- deview
- MariaDB
- Module
- code
- limits
- Ansible
- 코드
- httpd
- Linux
- mysql
- RESTful
- example
- apache
- command
- 번역
- client
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |