Skip to content

Instantly share code, notes, and snippets.

Benedikt Ritter britter

Block or report user

Report or block britter

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
britter / # ant - 2019-09-26_11-06-16.txt
Created Sep 26, 2019
ant on macOS 10.14.6 - Homebrew build logs
View # ant - 2019-09-26_11-06-16.txt
Homebrew build logs for ant on macOS 10.14.6
Build date: 2019-09-26 11:06:16
britter / junit-4+5.pom.xml
Last active Sep 4, 2018
Full POM file for using JUnit 4 alongside JUnit 5
View junit-4+5.pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""
britter / ParentActor.scala
Last active Mar 9, 2017
Closing over the enclosing scope using Props
View ParentActor.scala
final class ParentActor extends Actor {
private var value: Int = 0
override def receive = {
case Increment => value++
case CreateChild => context.actorOf(Props(new ChildActor(value)))
View Do stuff with scala
scala> val xs = List(5,-2,4,9)
res2: List[(Int, Int)] = List((5,5), (-2,3), (4,7), (9,16))
britter /
Created May 5, 2016
Apache Commons Validator CheckDigit implementation for validating German identity card ("Personalausweis") numbers
* 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
britter / run.log
Created Mar 31, 2016
Result of running from codecentric/spring-boot-configuration-example
View run.log
$ ./ Running application without configuration Application initialized with the following configuration: TypeSafeConfiguration{propertyName='null', propertyname='null', property_name='null'} AnnotationConfiguration{propertyDashName='not set', propertyPointName='not set', propertyName='not set', propertyname='not set', property_name='not set'} Running application with environment variables Set the following environment variables:
britter / pom.xml
Last active Jan 3, 2016
Profile for running the buildnumber-maven-plugin when not running on Heroku
View pom.xml
britter / pom.xml
Last active Dec 23, 2015
Profile for detecting Heroku build
View pom.xml
britter / build.log
Created Dec 23, 2015
Excerpt from Heroku build log
View build.log
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ spring-boot-heroku-demo ---
[INFO] Executing: /bin/sh -c cd '/tmp/build_503aea84b3313c9d0ae8587e46ee355c/britter-spring-boot-heroku-demo-846b48d' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /tmp/build_503aea84b3313c9d0ae8587e46ee355c/britter-spring-boot-heroku-demo-846b48d
[INFO] Storing buildNumber: null at timestamp: 1450623519645
britter / home.html
Created Dec 23, 2015
Using #strings to abbreviate the git commit hash
View home.html
<a href=""
th:text="${#strings.substring('__#{git.commit.hash}__', 0, 7)}"
You can’t perform that action at this time.