Skip to content

Instantly share code, notes, and snippets.

Niko Schmuck nikos

Block or report user

Report or block nikos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nikos
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 <niko.auto@nava.de>
# Install MarkLogic
RUN yum -y update &&\
yum groupremove 'Additional Development' 'E-mail server' 'Graphical Administration Tools' 'Perl Support' &&\
curl -O https://developer.marklogic.com/download/binaries/8.0/MarkLogic-8.0-3.x86_64.rpm &&\
yum -y install MarkLogic-8.0-3.x86_64.rpm &&\
rm MarkLogic-8.0-3.x86_64.rpm &&\
yum clean all
@nikos
nikos / MarkLogicAuthenticationProvider.java
Created Jan 28, 2015
Sample AuthenticationProvider for Spring using MarkLogic Server (version 7)
View MarkLogicAuthenticationProvider.java
package de.nava.mlsample.security;
import de.nava.mlsample.service.MarkLogicConnections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider;
import org.springframework.security.core.AuthenticationException;
@nikos
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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- ... your maven ceremony goes here ... --->
<dependencies>
<!-- MarkLogic Java Client API -->
<dependency>
<groupId>com.marklogic</groupId>
@nikos
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
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
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
@Override
void beforeExecute(Task task) {
clock = new org.gradle.util.Clock()
}
@Override
You can’t perform that action at this time.