Skip to content

Instantly share code, notes, and snippets.

View assada's full-sized avatar
🥒
Pickle Alex

Oleksii Ilienko assada

🥒
Pickle Alex
View GitHub Profile
@assada
assada / benchmark-commands.txt
Created July 4, 2019 11:48 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
This file has been truncated, but you can view the full file.
не 204169
в 160078
и 157893
я 154780
на 98469
а 97537
что 90557
это 81119
ты 70888
с 63932
<?php
function test(callable $function) {
return $function('Hello world');
}
$callable = function (string $s) {
echo $s . PHP_EOL;
};
@assada
assada / error.log
Last active January 21, 2019 22:43
Processing nodemcuv2 (build_flags: -D VERSION=1.0.0 -DMASTER -DMSPEED=115200 '-DaSSID="Maxira"' '-DaPASSWORD="qqqq1111"' -D NO_EXTRA_4K_HEAP; lib_deps: Adafruit Unified Sensor; monitor_speed: 115200; platform: espressif8266; board: nodemcuv2; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Library Storage: /home/assada/Documents/PlatformIO/Projects/roomCube/.piolibdeps
LibraryManager: Installing id=31
Adafruit Unified Sensor @ 1.0.2 is already installed
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz 80KB RAM (4MB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
app_1 | TypeError: Cannot use 'in' operator to search for 'url' in undefined
app_1 | at /usr/src/app/Generator/ImageGenerator.js:28:30
app_1 | at Request._callback (/usr/src/app/node_modules/google-search-parser2/parser.js:66:4)
app_1 | at Request.self.callback (/usr/src/app/node_modules/request/request.js:188:22)
app_1 | at Request.emit (events.js:182:13)
app_1 | at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1171:10)
app_1 | at Request.emit (events.js:182:13)
app_1 | at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1091:12)
app_1 | at Object.onceWrapper (events.js:273:13)
app_1 | at IncomingMessage.emit (events.js:187:15)
Index: tests/composer.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/composer.json (revision 2e74913288cb13f353441730efd1a3449d42ec3b)
+++ tests/composer.json (revision 4fdfb4099ad4838d88797bbde6a50c8726ff83bb)
@@ -17,12 +17,16 @@
},
"autoload": {
package main
import (
"fmt"
"path/filepath"
"github.com/hashicorp/consul/api"
"log"
"os"
"io"
"strings"
@assada
assada / ProxyManager.php
Last active October 5, 2018 10:26
OpenTracing ProxyManager
<?php
declare(strict_types = 1);
namespace SignNow\Core\OpenTracing;
use PDFfiller\OpenTracing\Span\SpanInterface;
use PDFfiller\OpenTracing\Tag\StringTag;
use PDFfiller\OpenTracing\TracerBridgeInterface;
use ProxyManager\Factory\AccessInterceptorScopeLocalizerFactory as Factory;
use ReflectionException;
@assada
assada / test.php
Last active October 1, 2018 13:25
OpenTracingProxy POC
<?php
/**
* REQUIREMENTS:
* composer require zendframework/zend-code
* composer require ocramius/proxy-manager
*/
declare(strict_types = 1);
use ProxyManager\Factory\AccessInterceptorScopeLocalizerFactory as Factory;
use Zend\Code\Reflection\ClassReflection;
@assada
assada / FormErrorsNormalizer.php
Last active May 22, 2019 08:42
Symfony 3 Form errors Normalizer
<?php
namespace Tire\DealerApiBundle\Serialize;
use Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationPath;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Validator\ConstraintViolationInterface;
/**
* Class FormErrorsSerializer