Skip to content

Instantly share code, notes, and snippets.

View ttiurani's full-sized avatar

Timo Tiuraniemi ttiurani

View GitHub Profile
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit windows
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>windows</name>
<uuid>xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx</uuid>
@ttiurani
ttiurani / gist:6172164
Last active December 20, 2015 17:59
Test for UUIDTransactionEventHandler.java
package example;
import org.junit.Test;
import org.neo4j.extension.uuid.UUIDPluginLifecycle;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
import org.neo4j.kernel.GraphDatabaseAPI;
import org.neo4j.server.WrappingNeoServerBootstrapper;
import org.neo4j.server.configuration.Configurator;
@ttiurani
ttiurani / gist:6172154
Created August 7, 2013 08:04
Logging for UUIDTransactionEventHandler.java
package org.neo4j.extension.uuid;
import com.fasterxml.uuid.Generators;
import com.fasterxml.uuid.impl.TimeBasedGenerator;
import org.neo4j.graphdb.PropertyContainer;
import org.neo4j.graphdb.event.PropertyEntry;
import org.neo4j.graphdb.event.TransactionData;
import org.neo4j.graphdb.event.TransactionEventHandler;
import java.util.UUID;