Skip to content

Instantly share code, notes, and snippets.

@keeganwitt
keeganwitt / launchRis.bat
Last active September 29, 2015 02:08
Deletes temp file that prevents RIS 2.0 from launching correctly on newer versions of Windows then launches RIS 2.0
@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"
@keeganwitt
keeganwitt / viewvc-link-log-view.user.js
Created September 1, 2011 16:53
A userscript to add links to log view for directories in ViewVC.
@keeganwitt
keeganwitt / Guild_Wars_Drunkard_Bot.ahk
Last active September 27, 2015 00:58
An AutoHotkey bot to maintain the optimum level of drunkenness for the drunkard title in Guild Wars.
; Author: Keegan Witt
; Last Updated: 18 Jan 2011
; Adapted from http://www.autohotkey.com/forum/topic22611-30.html
#NoEnv
#WinActivateForce
SendMode Input
MsgBox, 0, GW Drunkard Bot, You can press Ctrl-Q anytime to quit
@keeganwitt
keeganwitt / AutoClicker.ahk
Created August 29, 2011 15:13
A generic autoclicker AutoHotkey program
; Author: Keegan Witt
; Last Updated: 18 Jan 2011
#NoEnv
#WinActivateForce
hours := 0
minutes := 0
seconds := 0
@keeganwitt
keeganwitt / Guild_Wars_Tonic_Bot.ahk
Created August 29, 2011 15:15
An AutoHotkey tonic bot for Guild Wars
; Author: Keegan Witt
; Last Updated: 18 Jan 2011
; Adapted from http://www.autohotkey.com/forum/topic55918.html
#NoEnv
#WinActivateForce
SendMode Input
MsgBox, 0, GW Tonic Bot, You can press Ctrl-Q anytime to quit
@keeganwitt
keeganwitt / hdfsDownloader.groovy
Created April 7, 2014 20:20
A Groovy script to download HDFS files in parallel
// Usage: groovy hdfsDownloader.groovy [prod|qa|<dev username>] <file> (<output directory>)
// <file> can be an individual file or a directory of part files.
// If <output directory> is not specified, the current working directory is used
import groovy.json.JsonSlurper
import java.util.concurrent.Executors
import java.util.concurrent.ExecutorService
import java.util.concurrent.TimeUnit