Skip to content

Instantly share code, notes, and snippets.

[
{
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
"name": "REST Connector",
"id": "io.camunda.connectors.HttpJson.v2",
"description": "Invoke REST API",
"version": 5,
"icon": {
"contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.0335%208.99997C17.0335%2013.4475%2013.4281%2017.0529%208.98065%2017.0529C4.53316%2017.0529%200.927765%2013.4475%200.927765%208.99997C0.927765%204.55248%204.53316%200.947083%208.98065%200.947083C13.4281%200.947083%2017.0335%204.55248%2017.0335%208.99997Z%22%20fill%3D%22%23505562%22%2F%3E%0A%3Cpath%20d%3D%22M4.93126%2014.1571L6.78106%203.71471H10.1375C11.1917%203.71471%2011.9824%203.98323%2012.5095%204.52027C13.0465%205.04736%2013.315%205.73358%2013.315%206.57892C13.315%207.44414%2013.0714%208.15522%2012.5841%208.71215C12.1067%209.25913%2011.
@nikku
nikku / ADD_TRUSTED_ROOT.md
Last active September 13, 2022 13:10
Setup Arch Linux Thinkpad T430 / Dual Graphics

To add a custom, i.e. self-signed root certificate to a machine

  • Create file in /etc/ca-certificates/trust-source/anchors/
  • Rename *.pem to *.crt
  • Run trust extract-compat

(Via Arch News)

@nikku
nikku / fileassoc.nsh
Last active June 1, 2022 16:57
Better file association macros for NSIS (supporting per-user installation, too).
; fileassoc.nsh
; File association helper macros
; Written by Saivert
;
; Improved by Nikku<https://github.com/nikku>.
;
; Features automatic backup system and UPDATEFILEASSOC macro for
; shell change notification.
;
; |> How to use <|
@nikku
nikku / TEST_DSL.kt
Last active February 23, 2022 10:36
Quick hack of a readable DSL for writing assertions in Kotlin
import kotlin.test.assertEquals
fun <T> equal(expected: T) : (T) -> Unit {
return { t ->
assertEquals(t, expected);
}
}
infix fun <T> T.should(matcher: (T) -> Unit) {
matcher(this);
@nikku
nikku / SEMANTIC_HTML_ELEMENTS.md
Last active August 31, 2021 09:31
Use semantic HTML elements - A short pitch

Use Semantic HTML Elements

TLDR

Understand the semantic elements that HTML offers and use them in favor of divs

Clickable <div />? Try not to do it, if it clearly is a UI control.

Consider: Not every element that is clickable must be a UI control but every click action needs to be accessible from a UI control.

@nikku
nikku / XSD_SCHEMA_VALIDATOR_DEBUGGING_UNDEBUGABLE.md
Created April 27, 2021 13:25
Learnings From Debugging the Undebugable - Do not compile Java, on the fly

Learnings From Debugging the Undebuggable

TLDR: Do NOT Compile Java on the Fly

Nico Rehwaldt


Context

@nikku
nikku / BIO_ES6_MIGRATE.sh
Created October 8, 2020 13:12
A supporting script to migrate the bpmn.io code base to ES6 features
#!/usr/bin/env bash
shopt -s globstar
# loop all files to perform transformation
for i in lib/**/*.js
do
echo "Processing $i"
# we need to replace occurences of default function exports, as lebab does not support them:
@nikku
nikku / screencapture.md
Last active May 21, 2020 23:12
Animated Gif utility for X11 based systems

works badge

This is a simple script that allows you to choose an area that will be recorded into a 10s animated gif.

Usage

screencapture [dest-file]
@nikku
nikku / XML_BPMN_IO.md
Created April 28, 2020 12:52
XML lightning talk brain dump

XML (vs HTML)

  • VALIDATED AGAINST XML SCHEMA (XSD)

Each element is attached to more or less wellknown (moddle/moddle-xml speak) namespace

Namespaces in BPMN (common) => We have our own schema for them (moddle descriptors)

  • BPMN
  • BPMNDI
@nikku
nikku / DMN_JS_DI.xml
Last active February 17, 2020 13:14
DMN_JS Diagram Interchange
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="Definitions_1" name="Definitions_1">
<decision id="Decision_1" name="Decision_1" />
<dmndi:DMNDI>
<dmndi:DMNDiagram id="DMNDiagram_0docyxs">
<dmndi:DMNShape id="DMNShape_1gx1owo" dmnElementRef="Decision_1">
<dc:Bounds height="80" width="180" x="100" y="100" />
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>