Skip to content

Instantly share code, notes, and snippets.

View marchof's full-sized avatar
💭
🧑‍💻 ^ 🏔

Marc R. Hoffmann marchof

💭
🧑‍💻 ^ 🏔
View GitHub Profile
/*******************************************************************************
* Copyright (c) 2009, 2022 Mountainminds GmbH & Co. KG and Contributors
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Marc R. Hoffmann - initial API and implementation
@marchof
marchof / README.md
Created June 26, 2020 06:40
SCION Workbench Intro

The SCION Workbench is a Angular component(?) to create interactive workbench layouts.

Workbench layouts are useful for applications with non-linear workflows where users want to flexibly view and edit content in parallel. Examples are spezialized business applications, scientific or development tools as well as command & control interfaces.

The SCION Workbench supports tabbed views which allow the user to arbitrary arrange the content. Fixed areas can be declared to show context sensitive information. In addition typical workbench widgets are available, such as dialogs and notification ribbons.

While the SCION Workbench can be used in any Angular application it is particularly useful in host appplications for the SCION Microfrontend Platform.

@marchof
marchof / terraform.log
Created June 19, 2020 06:52
Terrafrom trace output when creating more than 5 load balancer items
aws_ecs_service.main: Creating...
2020/06/19 08:46:31 [DEBUG] aws_ecs_service.main: applying the planned Create change
2020/06/19 08:46:31 [TRACE] GRPCProvider: ApplyResourceChange
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: 2020/06/19 08:46:31 [DEBUG] setting computed for "placement_strategy" from ComputedKeys
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: 2020/06/19 08:46:31 [DEBUG] Adding ECS load balancers: [{
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: ContainerName: "java12",
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: ContainerPort: 8012,
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: TargetGroupArn: "arn:aws:elasticloadbalancing:eu-central-1:830482727482:targetgroup/javaalmanac-sandbox-java12/9d359c6500ab99c8"
2020-06-19T08:46:31.887+0200 [DEBUG] plugin.terraform-provider-aws_v2.46.0_x4: } {
2020-06-19T08:46:31.887+0200 [DEBUG] p
@marchof
marchof / StreamUbuse.java
Created April 13, 2020 10:52
Object allocation with streams
import java.util.stream.Stream;
// run with -agentlib:hprof=heap=sites,file=streams.txt
public class StreamUbuse {
public static void main(String[] args) {
int max = 0;
for (int i = 0; i < 1_000_000; i++) {
max = Stream.of(i, max).max(Integer::compareTo).get();
}
@marchof
marchof / build.log
Created November 27, 2019 05:13
OpenJDK compile failure on arm fails since 57111:dff8053bdb74
Sending build context to Docker daemon 2.56kB
Step 1/5 : FROM adoptopenjdk/openjdk13
---> 3e193f7fa7b6
Step 2/5 : RUN apt-get update && apt-get install -y autoconf file g++ gcc libcups2-dev libfontconfig1-dev libasound2-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev make unzip zip
---> Using cache
---> bb494b55e1fa
Step 3/5 : VOLUME /workspace /artifacts
---> Using cache
---> dc5f6f121576
@marchof
marchof / build-after.log
Last active October 23, 2019 18:00
Fixing compiler warnings in src/demo/share/jfc
Building target 'images' in configuration 'linux-arm-server-release'
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
Warning: No SCM configuration present and no .src-rev
Compiling 1 files for BUILD_JFR_TOOLS
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling 2 files for BUILD_JVMTI_TOOLS
Parsing 2 properties into enum-like class for jdk.compiler
Compiling 19 properties into resource bundles for jdk.compiler
Compiling 10 properties into resource bundles for jdk.javadoc
Compiling 12 properties into resource bundles for jdk.jdeps
@marchof
marchof / snippet.java
Created August 30, 2019 09:20
New API on JaCoCo Analyzer and Instrumenter?
/**
* This method is called for every class. If it returns <code>true</code>
* the class is filtered out and not processed. The default implementation
* always returns <code>false</code>, which means all provided classes are
* processed.
*
* @param classname
* internal vm name of the class
* @param id
* JaCoCo class id
[jacoco:instrument] Instrumented 15 classes to /tmp/jacocoTest381727944
[java] #
[java] # A fatal error has been detected by the Java Runtime Environment:
[java] #
[java] # Internal Error (constantPool.cpp:758), pid=8412, tid=8414
[java] # Error: ShouldNotReachHere()
[java] #
[java] # JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)
[java] # Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
[java] # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/travis/build/jacoco/jacoco/org.jacoco.ant.test/target/classes/org/jacoco/ant/core.8412)
@marchof
marchof / jacoco.svg
Created May 13, 2019 07:21
JaCoCo Badge
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marchof
marchof / readme.md
Last active April 17, 2019 05:21
Java 11 Workshop