Skip to content

Instantly share code, notes, and snippets.

View kaimst's full-sized avatar

Kai Sternad kaimst

View GitHub Profile
@kaimst
kaimst / StackoverflowNotifier.groovy
Last active December 15, 2015 15:49
Groovy script that checks for new Stack Overflow questions and notifies the user via terminal / growl / speech.
import java.text.SimpleDateFormat;
import groovyx.net.http.RESTClient
/**
* This Groovy script connects to the Stack Overflow Api and looks up the latest posts for user supplied tags.
*
* All unseen questions are then displayed on the console and optionally passed on to Growl
* (growlnotify must be installed and in the current execution path).
* It is also possible to let the OSX speech synthesizer (/bin/say) say the number of unseen questions per tag.
*
@kaimst
kaimst / TikaMetadataExtractor.groovy
Created December 1, 2013 16:54
A Groovy script that extracts metadata from files using Apache Tika. Works recursively on a file hierarchy and writes all found metadata into a single xml file.
/**
* Copyright 2013 Kai Sternad
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,