Skip to content

Instantly share code, notes, and snippets.

View msteiger's full-sized avatar

Martin Steiger msteiger

  • Darmstadt, Germany
View GitHub Profile
// This gem executes a single JUnit test conditionally. If the machine name contains a sub-string
// such as "dev", it will always be successful
public class MyTests {
final static private String[] JenkinsServerNameParts = new String[] { "da-build", "master", "soap", "dev" };
@Test
public void startNightVision() {
if(isRunOnJenkinsServer())
@msteiger
msteiger / activemq_template.xml
Created July 11, 2016 14:37
ActiveMQ template config file (not working!)
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@msteiger
msteiger / colors.reg
Last active September 12, 2017 10:23
Bright color scheme for msysgit
Windows Registry Editor Version 5.00
; Based on https://github.com/altercation/solarized/tree/master/putty-colors-solarized
; Registry file that maps the solarized palette to the 16 avaliable colors
; in a Windows command prompt. Note, hex values in the table are RGB but byte
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>
;
; Solarized color table from http://ethanschoonover.com/solarized.
;
@msteiger
msteiger / index.gradle
Created July 22, 2014 19:11
Update Terasology Module Index
apply plugin: 'java'
apply plugin: 'groovy'
import groovy.json.*
import org.ajoberstar.grgit.*
import org.ajoberstar.grgit.exception.GrgitException
group = 'org.terasology'
version = '0.1.0'
@msteiger
msteiger / org.eclipse.jdt.ui.prefs
Last active January 1, 2016 16:09
Terasology: Default code template prefs for eclipse
eclipse.preferences.version=1
formatter_profile=Terasology
formatter_settings_version=12
org.eclipse.jdt.ui.javadoc=true
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="construc
@msteiger
msteiger / GradientExtensionHandler.java
Created January 11, 2013 09:05
An ExtensionHandler for Apache Batik's svggen part that uses SVGGraphics2D to convert Swing drawing routines to SVG elements. Currently supports LinearGradientPaint and RadialGradientPaint. Feel free to comment and extend ..
import static org.apache.batik.util.SVGConstants.*;
import java.awt.Color;
import java.awt.LinearGradientPaint;
import java.awt.MultipleGradientPaint;
import java.awt.Paint;
import java.awt.RadialGradientPaint;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;