Skip to content

Instantly share code, notes, and snippets.

@pwendell
pwendell / commits.sh
Last active August 29, 2015 14:02
Re-creating commit activity graph
# How to re-create commit activity graphs for YARN, MapReduce, HDFS, and Spark.
# This example shows the last 60 days of activity.
git clone https://github.com/apache/hadoop-common.git
cd hadoop-common
# MapReduce (commits, inserted, deleted)
git log --since="60 days ago" --oneline --shortstat --grep MAPREDUCE | grep insertion | wc
git log --since="60 days ago" --oneline --shortstat --grep MAPREDUCE | grep insertion | cut -d " " -f 5 | perl -lne '$x += $_; END { print $x; }'
git log --since="60 days ago" --oneline --shortstat --grep MAPREDUCE | grep deletion | cut -d " " -f 5 | perl -lne '$x += $_; END { print $x; }'
@pwendell
pwendell / gist:6834223e68f254e6945e
Created November 13, 2014 18:48
Simple pom to demonstrate property activation
<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.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Maven Quick Start Archetype</name>
Verifying I am +pwendell on my passcard. https://onename.com/pwendell