Skip to content

Instantly share code, notes, and snippets.

@githubteacher
githubteacher / git-loglive
Created February 26, 2013 11:38
A Git command to display a live log. Put this file in your path, make it executable, and run "git loglive"
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@ivarconr
ivarconr / gist:3878454
Created October 12, 2012 09:52
Start embedded Jetty 8 with web-context
//jetty.version 8.1.7.v20120910
public static void main(String[] args) throws Exception {
Server server = new Server(3000);
WebAppContext context = new WebAppContext();
context.setDescriptor(context+"/WEB-INF/web.xml");
context.setResourceBase("./src/main/webapp");
context.setContextPath("/");
context.setParentLoaderPriority(true);