ftp_upload_example.ps112345678910111213141516171819202122$ftphost = "%(host)s"$ftpport = %(port)s$ftpusername= "%(user)s"$ftppassword = "%(passwd)s" $filename = [io.path]::GetFileName("%(file_full_path)s")[Net.ServicePointManager]::ServerCertificateValidationCallback ={$true}$ftpURL = "ftp://{0}:{1}/{2}" -f $ftphost, $ftpport, $filename$ftp = [System.Net.FtpWebRequest]::Create($ftpURL)$ftp = [Sy..
소문자, 대문자, 숫자 조합 8글자 이상 패스워드 매치1(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z]{8,}$/)cs apache httpd virtualhost 1(?:)((?:(?!).*\n?)+)cs postgresql log1\[([^\]]*)\] (?:\[([^\]]*)\] )?(\d{4}-\d\d-\d\d \d\d:\d\d:\d\d \w*) (?:(.*)\((\d+)\))?\[(\d*)\]: \[(.*)\] (\w*):\s+(?:duration: ([\d.]*) ms\s+statement:((?:(?!\[.*\] \d{4}-\d\d-\d\d \d\d:\d\d:\d\d \w*).*\n?)+)?)?((?:(?!\[.*\] \d{4}-\d\d-\d\d \d\d:\d..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115import osimport gcimport errnoimport socketimport optparsefrom threading import Threadfrom Queue import Queue socket_timeout = 0.1thread_size = 100default_max_po..
1234567891011Colored by Color Scriptercs
123456789101112131415Colored by Color Scriptercs
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 . '..
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..
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..
- Total
- Today
- Yesterday
- configuration
- MariaDB
- Python
- Windows
- 이슈처리
- 번역
- client
- 외부링크
- mysql
- command
- engineering
- deview
- check
- code
- Linux
- limits
- RESTful
- monitoring
- 코드
- Ansible
- Web
- 명령어
- Module
- apache
- httpd
- error
- example
- 예제
- PowerShell
- File
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |