Skip to content

Instantly share code, notes, and snippets.

View hascode's full-sized avatar

Micha Kops hascode

View GitHub Profile
@hascode
hascode / gist:7039247
Created October 18, 2013 09:52
Setting a global alias to allow a pretty-printed git log output defining an alias named plog (for pretty-log).
git config --global alias.plog "log --graph --decorate --all --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'"
git plog
@hascode
hascode / pom.xml
Created August 24, 2013 20:50
java ee 7 webapp from maven archetype with maven embedded glassfish plugin v4.0
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hascode.tutorial</groupId>
<artifactId>javaee7-webapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
@hascode
hascode / RoutingAfterCBRExample.scala
Created February 28, 2013 19:45
Camel Scala DSL: Routing after a Content-Based-Router
package com.hascode.tutorial
import org.apache.camel.scala.dsl.builder.RouteBuilder
import org.apache.camel.CamelContext
import org.apache.camel.impl.DefaultCamelContext
import javax.jms.ConnectionFactory
import org.apache.camel.component.jms.JmsComponent
import org.apache.activemq.ActiveMQConnectionFactory
import org.apache.camel.Processor
import org.apache.camel.scala.dsl.builder.RouteBuilderSupport
import org.apache.camel.Exchange