Skip to content

Instantly share code, notes, and snippets.

View danielkocot's full-sized avatar

Daniel Kocot danielkocot

View GitHub Profile

Keybase proof

I hereby claim:

  • I am danielkocot on github.
  • I am dk_1977 (https://keybase.io/dk_1977) on keybase.
  • I have a public key whose fingerprint is DC97 EB68 6B96 958A 6733 B4EF 4913 8983 376A 9198

To claim this, I am signing this object:

@danielkocot
danielkocot / gist:20d773a866791c5730b3cc602212253c
Created April 13, 2018 11:25
Gradle task for creating jbakeignorefile
task createjbakeignorefile {
group = "documentation"
doLast {
def allFiles = fileTree("src/documentation/content/test-reports").filter { it.isFile()}.files.name
allFiles.remove("index.ad")
allFiles.remove("aggregated_report.json")
def ignorefileName = "src/documentation/content/test-reports/.jbakeignore"
def ignoreFile = new File(ignorefileName)
ignoreFile.write(allFiles.join("\n"))
}
@danielkocot
danielkocot / gist:780eba4c020cb88d883d70b993ade364
Created February 26, 2018 16:39
Spock Reports properties file
com.athaydes.spockframework.report.IReportCreator=com.athaydes.spockframework.report.template.TemplateReportCreator
com.athaydes.spockframework.report.template.TemplateReportCreator.specTemplateFile=/template/spec-template.ad
com.athaydes.spockframework.report.template.TemplateReportCreator.reportFileExtension=ad
com.athaydes.spockframework.report.template.TemplateReportCreator.summaryTemplateFile=/template/summary-template.ad
com.athaydes.spockframework.report.template.TemplateReportCreator.summaryFileName=index.ad
com.athaydes.spockframework.report.outputDir=src/documentation/content/test-reports
com.athaydes.spockframework.report.hideEmptyBlocks=false
task createSpockSpecs {
group = "Generating Spock Specs from gherkin"
doLast {
def gherkinFiles = fileTree("src/test/resources/Features").files
def specBlock
gherkinFiles.each {
File transformFile = new File("$projectDir/src/test/groovy/$it.name".replaceFirst(~/\.[^\.]+$/,'Spec.groovy'))
if (!transformFile.exists()) {
Feature: Search
Scenario: Simple Search
Given a web browser is on the Google page
When the search phrase "codecentric" is entered
Then results for "codecentric" are shown
@danielkocot
danielkocot / keycloack-install
Created August 22, 2017 18:08 — forked from mottyc/keycloack-install
Keycloak server installtion script
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@danielkocot
danielkocot / wildfly-install.sh
Created July 28, 2016 13:19 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final

Asciidoctor Documentation

Follow the links on this page to learn about the AsciiDoc markup lan