Skip to content

Instantly share code, notes, and snippets.

View dwalldorf's full-sized avatar

Daniel Walldorf dwalldorf

View GitHub Profile
package com.dwalldorf.fuel.config;
import com.mongodb.Mongo;
import com.mongodb.MongoClient;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Morphia;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
@dwalldorf
dwalldorf / vss.sh
Created October 27, 2015 15:42
Starts vagrant if necessary and ssh's to it
#!/bin/bash
STATUS=$(vagrant status | grep -c running)
if [ "$STATUS" = 0 ]; then
vagrant up
fi
vagrant ssh
exit 0

Keybase proof

I hereby claim:

  • I am dwalldorf on github.
  • I am dwalldorf (https://keybase.io/dwalldorf) on keybase.
  • I have a public key whose fingerprint is B717 3F46 8DDB B4CC 685C 1440 0C59 89C5 F4B6 04AC

To claim this, I am signing this object: