Skip to content

Instantly share code, notes, and snippets.


Niko Schmuck nikos

View GitHub Profile
nikos / Dockerfile
Created Jun 16, 2015
MarkLogic Server 8.0-3 prepared to run with on an CentOS 6.6 Linux server, after container is started, go to http://localhost:8001/ to finish installation
View Dockerfile
FROM centos:centos6.6
MAINTAINER Niko Schmuck <>
# Install MarkLogic
RUN yum -y update &&\
yum groupremove 'Additional Development' 'E-mail server' 'Graphical Administration Tools' 'Perl Support' &&\
curl -O &&\
yum -y install MarkLogic-8.0-3.x86_64.rpm &&\
rm MarkLogic-8.0-3.x86_64.rpm &&\
yum clean all
nikos /
Created Jan 28, 2015
Sample AuthenticationProvider for Spring using MarkLogic Server (version 7)
import de.nava.mlsample.service.MarkLogicConnections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
nikos / pom.xml
Created Dec 12, 2014
Access MarkLogic 8 EA Java Client API via github's maven repository
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""
<!-- ... your maven ceremony goes here ... --->
<!-- MarkLogic Java Client API -->
nikos / Dockerfile
Last active Aug 29, 2015
MarkLogic Server 8 EA Dockerfile
View Dockerfile
# Requirements:
# - download MarkLogic EA 8 (MarkLogic-8.0-20141124.x86_64.rpm) into
# same directory like this Dockerfile
# Build your own image:
# docker build -t centos-marklogic8 .
# Start a new container with this image:
# docker run -p 8000:8000 -p 8001:8001 centos-marklogic8
nikos / build.gradle
Created Dec 17, 2012
Simple (aka minimal) Gradle script to create ZIP archive file and upload to nexus repository (as snapshot or if you modify the version to release)
View build.gradle
apply plugin: 'maven'
group = 'de.sample'
version = '0.1-SNAPSHOT'
description = 'My cool tool ...'
task customZip(type: Zip) {
from ('.') {
nikos / GradleTaskTimer.gradle
Created Oct 23, 2012
Measure time for the execution of each gradle task executed
View GradleTaskTimer.gradle
class TaskTimerListener implements TaskExecutionListener {
private Clock clock
void beforeExecute(Task task) {
clock = new org.gradle.util.Clock()