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
extension=elastic_apm.so | |
elastic_apm.bootstrap_php_part_file=/home/apm-agent/apm/src/bootstrap_php_part.php | |
elastic_apm.enabled=true | |
elastic_apm.server_url="http://docker.for.mac.localhost:8200" | |
; elastic_apm.secret_token= | |
elastic_apm.service_name="PHP APM Test Service" | |
; service_version= ${git rev-parse HEAD} | |
elastic_apm.log_level=DEBUG | |
; Available Log levels | |
; OFF | CRITICAL | ERROR | WARNING | NOTICE | INFO | DEBUG | TRACE |
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
FROM php:7.4-fpm | |
RUN apt-get update | |
RUN apt-get install -y libpq-dev libpng-dev curl nano unzip zip git jq supervisor | |
RUN docker-php-ext-install pdo_pgsql | |
RUN pecl install -o -f redis |
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
var globals = {}; // application wide global variable | |
globals.constants = { | |
} | |
globals.showToastMessage = function(heading, message, icon) { | |
$.toast({ | |
heading: heading, | |
text: message, | |
showHideTransition: 'slide', |
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
FROM php:7.4-fpm | |
RUN apt-get update | |
RUN apt-get install -y librdkafka-dev | |
RUN pecl install channel://pecl.php.net/rdkafka-beta | |
RUN rm -rf /tmp/pear |
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
version: '2' | |
services: | |
zookeeper: | |
image: bitnami/zookeeper:3.6.1 | |
ports: | |
- 2181:2181 | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
- ZOO_ENABLE_AUTH=yes |
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
# BENCHMARK----------------------------------------------------- | |
#1. Rust kafka-benchmark (https://github.com/fede1024/kafka-benchmark) | |
# must create topic with 6 partitions first | |
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 6--topic [scenario] | |
# replace scenario with one in file kafka-benchmark/config/base_producer.yaml |
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 | |
echo 'script 1 start' . PHP_EOL; | |
class A12 | |
{ | |
public $script = null; | |
public function __construct ($script = 's1') { | |
$this->script = $script; | |
} |
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
git shortlog -e -s -n |
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 | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class AddUserApiTokenField extends Migration | |
{ | |
/** | |
* Run the migrations. |