Skip to content

Instantly share code, notes, and snippets.

View vorburger's full-sized avatar
💭
I may be slow to respond.

Michael Vorburger vorburger

💭
I may be slow to respond.
View GitHub Profile
@vorburger
vorburger / gist:662d8b5f44c41edae2e22ca6f90ab04a
Created September 5, 2018 13:31
odl-etcd-demo-restconf missing org.apache.commons.text
2018-09-05T15:20:10,380 | ERROR | Time-limited test | SingleFeatureTest | 78 - PAXEXAM-PROBE-1476aac8-86ea-4d97-9ec2-62e234288c3f - 0.0.0 | installFeature() failed
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=odl-etcd-demo-restconf; type=karaf.feature; version="[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]"; filter:="(&(osgi.identity=odl-etcd-demo-restconf)(type=karaf.feature)(version>=0.0.1.SNAPSHOT)(version<=0.0.1.SNAPSHOT))" [caused by: Unable to resolve odl-etcd-demo-restconf/0.0.1.SNAPSHOT: missing requirement [odl-etcd-demo-restconf/0.0.1.SNAPSHOT] osgi.identity; osgi.identity=odl-restconf; type=karaf.feature; version="[1.9.0.SNAPSHOT,1.9.0.SNAPSHOT]" [caused by: Unable to resolve odl-restconf/1.9.0.SNAPSHOT: missing requirement [odl-restconf/1.9.0.SNAPSHOT] osgi.identity; osgi.identity=org.opendaylight.netconf.restconf-nb-bierman02-auth; type=osgi.bundle; version="[1.9.0.SNAPSHOT,1.9.0.SNAPSHOT]"; resolution:=mandatory
@vorburger
vorburger / latency.markdown
Last active August 22, 2018 13:47 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 1K bytes over 1 Gbps network ....... 10,000 ns  =  10 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@vorburger
vorburger / gist:37506778d44ff657357547c8860ae6d1
Created August 13, 2018 15:41
git config -l --show-origin | grep vorburger
https://github.com/github/hub/issues/1708
$ git config -l --show-origin | grep vorburger
file:/home/vorburger/.gitconfig user.name=Michael Vorburger
file:/home/vorburger/.gitconfig [email protected]
file:/home/vorburger/.gitconfig credential.helper=store
file:/home/vorburger/.gitconfig core.autocrlf=input
file:/home/vorburger/.gitconfig core.eol=native
file:/home/vorburger/.gitconfig core.excludesfile=/home/vorburger/.gitignore_global
@vorburger
vorburger / gist:0467aefc1757d2cc319adf4727e9230e
Created August 9, 2018 16:56
minishift wget minishift-centos7.iso struggle
https://github.com/minishift/minishift-centos-iso/issues/259
wget --continue https://github.com/minishift/minishift-centos-iso/releases/download/v1.12.0/minishift-centos7.iso
--2018-08-09 18:34:23-- https://github.com/minishift/minishift-centos-iso/releases/download/v1.12.0/minishift-centos7.iso
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/69853246/922b03d8-8452-11e8-9dcd-92e33542c976?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180809T163423Z&X-Amz-Expires=300&X-Amz-Signature=839541773ed08c00400edcace7a68ad77caf9f05dc590ad76257f3138c098751&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dminishift-centos7.iso&response-content-type=application%2Foctet-stream [followin
@vorburger
vorburger / karaf.log
Created July 5, 2018 16:28
Weird ODL Karaf restart
https://bugzilla.redhat.com/show_bug.cgi?id=1597304
Jun 27, 2018 10:00:15 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Jun 27, 2018 10:00:15 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Jun 27, 2018 10:00:16 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /opt/opendaylight/lock
Jun 27, 2018 10:00:16 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
@vorburger
vorburger / gist:64f3e7f8695dad530a4c587c2b40a150
Created July 3, 2018 17:28
ODL netvirt/aclservice/impl help:effective-pom with org.eclipse.jdt.core 3.14.0
Re. https://github.com/eclipse/xtext-xtend/issues/493
in ODL/git/netvirt/aclservice/impl
with this changed locally:
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<dependencies>
@vorburger
vorburger / oomph.log
Created May 8, 2018 09:04
opendaylight-eclipse-setup-issue-6
Executing bootstrap tasks
OpenJDK Runtime Environment 1.8.0_171-b10
Product org.eclipse.products.epp.package.java.latest
Workspace /home/vorburger/eclipse-test/ws
Project org.opendaylight.empty.master
Bundle org.eclipse.oomph.setup 1.9.0.v20180421-1024, build=3502, branch=a3ffd1307564e51e3c406c3e2744bc282019b050
Bundle org.eclipse.oomph.setup.core 1.9.0.v20180425-0647, build=3502, branch=a3ffd1307564e51e3c406c3e2744bc282019b050
Bundle org.eclipse.oomph.setup.installer 1.9.0.v20180426-1142, build=3502, branch=a3ffd1307564e51e3c406c3e2744bc282019b050
Bundle org.eclipse.oomph.setup.p2 1.9.0.v20180419-0636, build=3502, branch=a3ffd1307564e51e3c406c3e2744bc282019b050
Performing Workspace /home/vorburger/eclipse-test/ws
@vorburger
vorburger / proposal.md
Last active January 12, 2018 22:27 — forked from edewit/proposal.md

Teaching programming to children using Minecraft on OpenShift/Kubernetes

When we were younger, getting enthusiastic about programming and computers in general was a lot easier than it is now. They where these "magical" machines that would do whatever you wanted them to do. Today, computers are in everybody's day to day lives and have lost that "magical" feeling. The challenge is to get children excited about programming by reducing the time to setup and learning concepts, but get started right away with something they love - like Minecraft! We'll show you how with Kubernetes, OpenShift and Minecraft we can progressively do just - at first using our ScratchX extension to get started with graphical programming, and then with a push on a button you can have a full Java development environment set up to start learning and teaching programming. We set up an Eclipse Che IDE with continuous builds of the modifications, and a Minecraft server with our OSGi extension that can hot reload changes, so that we can ha

@Test
public void testBasicWait() throws InterruptedException, ExecutionException {
long millis = 500;
final AtomicReference<Future<?>> futureRef = new AtomicReference<>();
testAndVerifyTimeBounds(executorService ->
futureRef.set(executorService.submit(() -> {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
// Ignored
@vorburger
vorburger / ThreadExplosion.java
Created November 2, 2017 23:39
Java class which creates A LOT of threads
/*
* Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package test;
/**