Skip to content

Instantly share code, notes, and snippets.

Sandro Keil sandrokeil

View GitHub Profile
@sandrokeil
sandrokeil / voip-telekom-domains.php
Last active Aug 23, 2018
Telekom VOIP IPs - Fritz Box accesslist
View voip-telekom-domains.php
<?php
$chars = [
'b',
'd',
'f',
'h',
'k',
'l',
'm',
@sandrokeil
sandrokeil / results.log
Created Apr 11, 2018
ArangoDB PHPCPP Driver 20180411-2226
View results.log
Name Command State Ports
-----------------------------------------------------------------------------------------------
eventstorebenchmarksphpcpp_database_1 /entrypoint.sh arangod Up 0.0.0.0:8529->8529/tcp
Docker Info
Containers: 26
Running: 1
Paused: 0
Stopped: 25
@sandrokeil
sandrokeil / 20171207-2336.log
Last active Dec 14, 2017
ArangoDB prooph event store benchmarks
View 20171207-2336.log
Testing databases are (Barangodb mysql postgres mariadb
Name Command State Ports
------------------------------------------------------------------------------------------------
eventstorebenchmarks_arangodb_1 /entrypoint.sh arangod Up 0.0.0.0:8529->8529/tcp
eventstorebenchmarks_php_1 docker-php-entrypoint php -a Exit 0
Docker Info(B
Containers: 25
Running: 1
@sandrokeil
sandrokeil / vpack_bench.php
Created Dec 2, 2017
vpack benchmark test #1
View vpack_bench.php
<?php
require 'vendor/autoload.php';
use ArangoDb\Vpack;
use ProophTest\EventStore\Mock\TestDomainEvent;
$payload = [
'key1' => 'value1',
@sandrokeil
sandrokeil / arangodb.log
Last active Nov 27, 2017
error arangodb.log
View arangodb.log
Attaching to eventstorebenchmarks_arangodb_1, eventstorebenchmarks_php_1
arangodb_1 | automaticaly choosing storage engine
arangodb_1 | Initializing database...Hang on...
arangodb_1 | Database initialized...Starting System...
arangodb_1 | {startup} Action::loadOptions
arangodb_1 | {startup} FileDescriptors::loadOptions
arangodb_1 | {startup} Greetings::loadOptions
arangodb_1 | {startup} LoggerBuffer::loadOptions
arangodb_1 | {startup} Nonce::loadOptions
arangodb_1 | {startup} PageSize::loadOptions
@sandrokeil
sandrokeil / arangodb.json
Last active Nov 27, 2017
Benchmark JSON
View arangodb.json
{"collections":{"write":["cfc3bd10cb689dcd23c9046019340ac6d19a93764"]},"action":"function () {var db = require('@arangodb').db;var rId0 = db.cfc3bd10cb689dcd23c9046019340ac6d19a93764.insert([{\"_key\":\"100000000000000001\",\"event_id\":\"2ff3c577-ebe8-4415-af0d-baaccb97620d\",\"event_name\":\"ProophTest\\\\EventStore\\\\Mock\\\\TestDomainEvent\",\"payload\":{\"key1\":\"value1\",\"key2\":2,\"key3\":\"some@mail.com\",\"key4\":\"value4\",\"key5\":true,\"key6\":false,\"key7\":7},\"metadata\":{\"_aggregate_version\":2},\"created_at\":\"2017-11-27T16:43:11.984174\"},{\"_key\":\"100000000000000002\",\"event_id\":\"ea7a0992-492d-4a60-b85e-5a3e9bac29ef\",\"event_name\":\"ProophTest\\\\EventStore\\\\Mock\\\\TestDomainEvent\",\"payload\":{\"key1\":\"value1\",\"key2\":2,\"key3\":\"some@mail.com\",\"key4\":\"value4\",\"key5\":true,\"key6\":false,\"key7\":7},\"metadata\":{\"_aggregate_version\":3},\"created_at\":\"2017-11-27T16:43:11.984291\"},{\"_key\":\"100000000000000003\",\"event_id\":\"0d84043b-c4b2-4c84-a9da-e74de94
@sandrokeil
sandrokeil / results.md
Created Oct 2, 2017
prooph-event-store-benchmarks
View results.md

prooph Event Store benchmark

They were running a notebook with Intel(R) Core(TM) i7-Q720 CPU @ 1.6GHz (x8), 20 GB RAM, SAMSUNG SSD 850

ArangoDB event store

arangodb: recreating test-database _system

test 1 create 10 streams with 100 events in each stream, using 1 event per commit

test 1 using arangodb took 1.3396980762482 seconds test 1 using arangodb writes 746.4368410534 events per second

@sandrokeil
sandrokeil / Dockerfile
Created Feb 25, 2017
nginx with lua-resty-auto-ssl - On the fly (and free) SSL registration and renewal inside nginx with Let's Encrypt.
View Dockerfile
FROM alpine:3.5
ENV NGINX_VERSION 1.11.10
ENV LUAROCKS_VERSION 2.4.2
ENV NGX_DEVEL_KIT_VERSION 0.3.0
ENV LUA_NGINX_MODULE_VERSION 0.10.7
# or tell where to find Lua if using Lua instead:
ENV LUA_LIB /usr/lib
ENV LUA_INC /usr/include
@sandrokeil
sandrokeil / gist:30a197f2b92ef524257a
Created Jan 9, 2016
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
View gist:30a197f2b92ef524257a
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
@sandrokeil
sandrokeil / git-batch-upstream-branch-update
Created Jan 5, 2016
git-batch-upstream-branch-update
View git-batch-upstream-branch-update
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos git-batch-upstream-branch-update repos.txt"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line
You can’t perform that action at this time.