View pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovyc-antrun-example</artifactId> | |
<name>Groovyc Maven AntRun Example</name> | |
<version>1.0-SNAPSHOT</version> |
View gradle-dependency-analyze.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.maven.shared.dependency.analyzer.ClassAnalyzer | |
import org.apache.maven.shared.dependency.analyzer.DefaultClassAnalyzer | |
import org.apache.maven.shared.dependency.analyzer.DependencyAnalyzer | |
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis | |
import org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer | |
import org.gradle.api.Project | |
import org.gradle.api.artifacts.ConfigurationContainer | |
import org.gradle.api.artifacts.ResolvedArtifact | |
import org.gradle.api.artifacts.ResolvedDependency |
View dependency-report.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inspired by https://gist.github.com/abesto/cdcdd38263eacf1cbb51 | |
// Task creates a .dot file with all inter-module dependencies | |
// Supports any depth of nested modules | |
task moduleDependencyReport { | |
doLast { | |
def file = new File("project-dependencies.dot") | |
file.delete() | |
file << "digraph {\n" | |
file << "splines=ortho\n" |
View hdfs-username-hack.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name hdfs-username-hack | |
// @version 0.1 | |
// @description Overrides the username to allow you to view HDFS files and directories from the NameNode web interface that aren't world readable | |
// @author Keegan Witt | |
// @include */browseDirectory.jsp* | |
// @include */browseBlock.jsp* | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading |
View SleepInputFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is a lot like the InputFormat defined in Hadoop's | |
* <a href="https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.22/mapreduce/src/test/mapred/org/apache/hadoop/mapreduce/SleepJob.java">SleepJob</a> | |
* except that it uses the Hadoop 2 API. | |
*/ | |
public static class SleepInputFormat extends InputFormat<IntWritable, IntWritable> { | |
public static final String MAP_SLEEP_COUNT = "mapreduce.sleepjob.map.sleep.count"; | |
public static final String REDUCE_SLEEP_COUNT = "mapreduce.sleepjob.reduce.sleep.count"; | |
@Override |
View GenerateJavaOnixTagConverter.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Keegan Witt | |
* @version 1.0 | |
*/ | |
class GenerateJavaOnixTagConverter { | |
private static final String SCHEMA_2_FILENAME = "ONIX_BookProduct_Release2.1_reference.xsd" | |
private static final String SCHEMA_3_FILENAME = "ONIX_BookProduct_3.0_reference.xsd" | |
private static final String ONIX_2_CLASS = "Onix2TagConverter" | |
private static final String ONIX_3_CLASS = "Onix3TagConverter" |
View mercurial-stay-on-tip.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name mercurial-stay-on-tip | |
// @version 0.1 | |
// @description Provide changes links to tip version in Mercurial web interface if you are navigating from the tip version. | |
// @author Keegan Witt | |
// @include http://hg.openjdk.java.net/* | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading | |
function addJQuery(callback) { |
View GuildWarsImage.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Author: Keegan Witt | |
rem Version 1.0 | |
rem This runs Guild Wars with the -image argument, which downloads all the updated files. | |
rem if Guild Wars is running, kill it | |
TASKKILL /F /IM "gw.exe" 2> NUL | |
rem launch Guild Wars with the -image option | |
if %PROCESSOR_ARCHITECTURE% == x86 ( |
View launchRis.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Author: Keegan Witt | |
rem Description: Deletes temp file that prevents RIS 2.0 from launching correctly on newer versions of Windows then launches RIS 2.0 | |
del "%TEMP%\Ris 2.0.mov.#res" | |
if %PROCESSOR_ARCHITECTURE% == x86 ( | |
"%PROGRAMFILES%\LEGO MINDSTORMS\RIS 2.0\LaunchRis2.exe" | |
) else ( | |
"%PROGRAMFILES(X86)%\LEGO MINDSTORMS\RIS 2.0\LaunchRis2.exe" |
View viewvc-link-log-view.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name viewvc-link-log-view | |
// @version 0.1 | |
// @description Provides links to log view for directories in ViewVC until http://viewvc.tigris.org/issues/show_bug.cgi?id=470 is implemented | |
// @author Keegan Witt | |
// @include http://svn.*/viewvc/* | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading | |
function addJQuery(callback) { |
NewerOlder