This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * perform multiple curl requests in parallel | |
| * @param array.<string> $urls - an indexed array of urls to fetch | |
| * @param array.<integer> $curopts - curl options to pass to curl_setopt_array() | |
| * @return array | |
| */ | |
| function curlMulti(array $urls, array $curlopts) | |
| { | |
| $ret = []; | |
| $chs = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| const DB_HOST = 'localhost'; | |
| const DB_NAME = 'php_bug_test'; | |
| const DB_TABLE = 'timestamp_test'; | |
| const DB_USER = 'root'; | |
| const DB_PASSWORD = 'root'; | |
| $dbSQL = "CREATE DATABASE IF NOT EXISTS ".DB_NAME; | |
| $combo = DB_NAME.'.'.DB_TABLE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SOURCE=/some/dir | |
| DEST=/some/other/dir | |
| rsync \ | |
| --verbose \ | |
| --archive \ | |
| --prune-empty-dirs \ | |
| --dry-run \ | |
| --include='*.js' \ | |
| --filter='-! */' \ |
NewerOlder