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
| brew remove --force $(brew list) --ignore-dependencies | |
| brew cleanup |
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
| # https://stackoverflow.com/a/52900711/1205171 | |
| sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / | |
| brew install re2c bison@2.7 openssl libjpeg libpng icu4c mcrypt | |
| export PATH="/usr/local/opt/bison@2.7/bin:/usr/local/opt/openssl/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH" | |
| export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/opt/icu4c/lib $LDFLAGS" | |
| export CPPFLAGS="-I/usr/local/opt/openssl/include -I/usr/local/opt/icu4c/include $CPPFLAGS" | |
| export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH" |
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
| curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer | bash | |
| PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j$(nproc)" phpenv install 7.3.2 | |
| git clone https://github.com/oleg-andreyev/MinkSelenium2Driver -b fix-master-build | |
| cd MinkSelenium2Driver | |
| composer install | |
| docker run -p 4444:4444 -v /dev/shm:/dev/shm --shm-size 2g selenium/standalone-firefox:2.53.1 | |
| php -dmemory_limit=3G -S localhost:8002 -t ./vendor/mink/driver-testsuite/web-fixtures | |
| phpenv local 7.3.2 |
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
| # Follow https://gist.github.com/oleg-andreyev/05fae22548ccdff8deebde144c4cbe7f | |
| # nproc alias https://gist.github.com/oleg-andreyev/053b90ef33d2c29446ef466a2817d01c | |
| function is_osx { | |
| local uname=$(uname) | |
| if [ "$uname" = "Darwin" ]; then | |
| return 0 | |
| else | |
| return 1 |
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
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one or more | |
| * contributor license agreements. See the NOTICE file distributed with | |
| * this work for additional information regarding copyright ownership. | |
| * The ASF licenses this file to You under the Apache License, Version 2.0 | |
| * (the "License"); you may not use this file except in compliance with | |
| * the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
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
| /** | |
| * Calculates the geodesic distance between two points specified by radian latitude/longitude using | |
| * Vincenty inverse formula for ellipsoids (vif) | |
| */ | |
| function vif($lng1, $lat1, $lng2, $lat2) | |
| { | |
| $lng1 = deg2rad($lng1); | |
| $lat1 = deg2rad($lat1); | |
| $lng2 = deg2rad($lng2); | |
| $lat2 = deg2rad($lat2); |
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
| /** | |
| * Calculates the geodesic distance between two points specified by radian latitude/longitude using the | |
| * Haversine formula (hf) | |
| */ | |
| function hf($lat1, $lng1, $lat2, $lng2) | |
| { | |
| $R = 6371e3; | |
| $lng1 = deg2rad($lng1); | |
| $lat1 = deg2rad($lat1); |
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
| # Follow https://gist.github.com/oleg-andreyev/05fae22548ccdff8deebde144c4cbe7f | |
| # nproc alias https://gist.github.com/oleg-andreyev/053b90ef33d2c29446ef466a2817d01c | |
| # avoid brew cleanup | |
| export HOMEBREW_NO_INSTALL_CLEANUP=1 | |
| # icu4c must be >= 64.0 | |
| brew install icu4c bison@3.4 krb5 oniguruma libedit | |
| export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/bison/bin:/usr/local/opt/krb5/bin:/usr/local/opt/krb5/sbin:/usr/local/opt/openssl@1.1/bin:$PATH" |
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
| <FQCN>: | |
| shortName: <string> | |
| description: <string> | |
| iri: <string> | |
| itemOperations: | |
| get: | |
| method: GET | |
| produces: ~ | |
| summary: ~ | |
| description: ~ |
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
| cca0def37dad:/app# SPX_ENABLED=1 SPX_FP_LIVE=1 SPX_METRICS=wt,zm,zmac,zmab,zmfb php test.php | |
| *** SPX Report *** | |
| Global stats: | |
| Called functions : 2.0M | |
| Distinct functions : 3 | |
| Wall time : 1.78s |
OlderNewer