Skip to content

Instantly share code, notes, and snippets.

View sandrokeil's full-sized avatar

Sandro Keil sandrokeil

View GitHub Profile
@sandrokeil
sandrokeil / git-batch-clone
Last active April 8, 2017 23:29
git-batch-clone
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "First parameter is a file with a list of repos and second parameter is the git path e.g. git-batch-clone repos.txt git@github.com:sandrokeil/"
fi
cd $(pwd)
cat $1 | while read line
do
if [ ! -d "$line" ]; then
@sandrokeil
sandrokeil / git-batch-upstream
Last active January 5, 2016 21:53
git-batch-upstream
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos and second parameter (optional) is git path e.g. git-batch-upstream repos.txt git@github.com:sandrokeil/"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line
@sandrokeil
sandrokeil / git-batch-upstream-branch-update
Created January 5, 2016 22:59
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
@sandrokeil
sandrokeil / gist:30a197f2b92ef524257a
Created January 9, 2016 11:43
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
Verifying that +sandrokeil is my blockchain ID. https://onename.com/sandrokeil
@sandrokeil
sandrokeil / Dockerfile
Created February 25, 2017 11:38
nginx with lua-resty-auto-ssl - On the fly (and free) SSL registration and renewal inside nginx with Let's Encrypt.
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 / results.md
Created October 2, 2017 11:21
prooph-event-store-benchmarks

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 / arangodb.json
Last active November 27, 2017 16:44
Benchmark 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 / arangodb.log
Last active November 27, 2017 17:46
error 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 / vpack_bench.php
Created December 2, 2017 16:14
vpack benchmark test #1
<?php
require 'vendor/autoload.php';
use ArangoDb\Vpack;
use ProophTest\EventStore\Mock\TestDomainEvent;
$payload = [
'key1' => 'value1',
@sandrokeil
sandrokeil / 20171207-2336.log
Last active December 14, 2017 23:17
ArangoDB prooph event store benchmarks
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