Skip to content

Instantly share code, notes, and snippets.

Working from home

Gadi Eichhorn gadieichhorn

Working from home
View GitHub Profile
View message
public interface Message {
@NonNull UUID getTrace();
View messagebus
public interface MessageBus {
void publish(Message message);
void subscribe(Observer<Message> observer);
View OSGi BND test Rule - DRY
import lombok.Builder;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.junit.rules.ExternalResource;
import org.osgi.framework.BundleContext;
import org.osgi.util.tracker.ServiceTracker;
import static org.junit.Assert.assertNotNull;
View Setting up Docker Machine on Raspberry

#Setting up Docker Machine on Raspberry PI

  1. SSH into the pi and install docker with curl -sSL | sh (If we let Machine try to install the Docker daemon it will fail.)
  2. Change the OS's ID so Docker Machine won't throw errors. sudo nano /etc/os-release and change the line that says ID=raspbian to ID=debian
  3. From a new terminal window run docker-machine create --driver generic --generic-ip-address YOUR-PIS-IP --generic-ssh-key ~/.ssh/id_rsa --generic-ssh-user pi --engine-storage-driver overlay2 MACHINE-NAME
gadieichhorn / pom-all.xml
Created March 9, 2017 15:22
Update version of projects
View pom-all.xml
<project xmlns="" xmlns:xsi=""
gadieichhorn /
Created March 2, 2017 15:50 — forked from AdamLJohnson/
How to get Kubernetes running on Windows 10

Kubernetes On Windows

Early in August 2016 Microsoft released the Windows 10 Anniversary Update. There were a number of changes, but the one that got me to actually take the time to install the update was "Bash on Ubuntu on Windows". This feature would install Ubuntu Linux without the kernel. It would run linux in user-mode. Linux would run the commands while Windows does all the work/processing.

For an upcoming project I needed to get Kubernetes running. Being as Kubernetes is not able to be run in Windows the normally accepted way to procees is to create a virtual Linux box and run it from there. I wanted to see if Kubernetes would run in Bash on Ubuntu on Windows.

This is how I got it to work:

Install the Windows 10 Anniversary Update

View DI
Class Service {
// call some external API
// the implementation can very without effecting the consumers
// it can be mocked for testing
string getData() { return string }