Skip to content

Instantly share code, notes, and snippets.

@menski
menski / failed-tests.py
Created May 6, 2019 14:18
Jenkins failed tests statistics
#!/bin/env python
#
# Usage: failed_tests.py [BRANCH] [NUMBER_OF_BUILDS]
#
# Default:
# BRANCH - develop
# NUMBER_OF_BUILDS - 10
#
import collections
@menski
menski / CAMUNDA_CLA
Last active March 20, 2019 13:41
Camunda CLA Example
# Individual/Employee Contributor License Agreement
This Individual/Employee Contributor License Agreement (hereinafter referred to as the “Agreement”) is between the signee, further referred to as “Contributor” and Camunda Services GmbH, Zossener Strasse 55-58, 10961 Berlin, Germany, further referred to as "Camunda" (together referred to as the “Parties”). The purpose of this Agreement is to set forth the terms and conditions under which Camunda may use software that the Contributor wishes to contribute to Camunda for use within one or more of its software development projects.
By electronically signing this Agreement, the Contributor agrees to transact electronically and to enter into a binding Agreement based on the below stipulated terms and conditions. Before signing and clicking a button to e-sign or accept, the Contributor will read the terms and conditions of this Agreement and any terms of use provided through the signing process. The Contributor warrants that he is authorised to complete the elect
@menski
menski / log.txt
Created March 19, 2019 08:27
RocksDB log with 4 partitions and default settings
This file has been truncated, but you can view the full file.
2019/03/18-18:55:13.519161 7f19105fa700 RocksDB version: 5.17.2
2019/03/18-18:55:13.519366 7f19105fa700 Git sha rocksdb_build_git_sha:
2019/03/18-18:55:13.519369 7f19105fa700 Compile date Nov 26 2018
2019/03/18-18:55:13.519371 7f19105fa700 DB SUMMARY
2019/03/18-18:55:13.519454 7f19105fa700 SST files in /usr/local/zeebe/data/partition-0/state/0_zb-stream-processor/runtime dir, Total Num: 0, files:
2019/03/18-18:55:13.519458 7f19105fa700 Write Ahead Log file in /usr/local/zeebe/data/partition-0/state/0_zb-stream-processor/runtime:
2019/03/18-18:55:13.519460 7f19105fa700 Options.error_if_exists: 0
2019/03/18-18:55:13.519461 7f19105fa700 Options.create_if_missing: 1
2019/03/18-18:55:13.519463 7f19105fa700 Options.paranoid_checks: 1
2019/03/18-18:55:13.519465 7f19105fa700 Options.env: 0x7f19032f3620
@menski
menski / log.txt
Created March 18, 2019 18:44
RocksDB partition-0 state LOG
This file has been truncated, but you can view the full file.
2019/03/18-14:41:15.537496 7f01783f8700 RocksDB version: 5.17.2
2019/03/18-14:41:15.537723 7f01783f8700 Git sha rocksdb_build_git_sha:
2019/03/18-14:41:15.537730 7f01783f8700 Compile date Nov 26 2018
2019/03/18-14:41:15.537733 7f01783f8700 DB SUMMARY
2019/03/18-14:41:15.537815 7f01783f8700 SST files in /usr/local/zeebe/data/partition-0/state/0_zb-stream-processor/runtime dir, Total Num: 0, files:
2019/03/18-14:41:15.537819 7f01783f8700 Write Ahead Log file in /usr/local/zeebe/data/partition-0/state/0_zb-stream-processor/runtime:
2019/03/18-14:41:15.537821 7f01783f8700 Options.error_if_exists: 0
2019/03/18-14:41:15.537823 7f01783f8700 Options.create_if_missing: 1
2019/03/18-14:41:15.537824 7f01783f8700 Options.paranoid_checks: 1
2019/03/18-14:41:15.537825 7f01783f8700 Options.env: 0x7f00930ef620
@menski
menski / anon_json.py
Created February 28, 2019 16:00
Anonymise JSON
import json
import random
import string
def random_string(length):
return ''.join([random.choice(string.ascii_letters) for n in range(length)])
def random_bool():
return random.choice([True, False])
@menski
menski / not-signed
Last active February 13, 2019 14:57
CLA Bot Check
{
"isContributor": false
}
@menski
menski / partition.md
Last active July 5, 2018 12:39
Zeebe Static Partitions Configuration

Configuration Parameters

Required parameters on every broker in a Zeebe cluster (single topic). Only nodeId has to be unique per broker, other values have to be the same.

nodes = 5       (broker processes)
partitions = 6  (unrestricted)
replication = 3 (constraint <= nodes)
nodeId = x      (constraint unique between 0 and nodes (exclusive))
import org.camunda.bpm.dmn.engine.DmnEngine;
public class MyProcessEnginePlugin extends AbstractProcessEnginePlugin {
public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
DmnEngine dmnEngine = processEngineConfiguration.getDmnEngineConfiguration()
.feelEngineFactory(new CustomFeelEngineFactory())
.buildEngine();
processEngineConfiguration.setDmnEngine(dmnEngine);
@menski
menski / Dockerfile
Last active September 17, 2015 09:01
FROM camunda/camunda-bpm-platform:latest
RUN rm /camunda/webapps/camunda-invoice
ADD my.war /camunda/webapps/my.war
package ci.community
import generator.JobGenerator
import util.*
Server.COMMUNITY().each { server ->
new JobGenerator(
name: "${Version.CURRENT}-webapp-IT-${server}",