Skip to content

Instantly share code, notes, and snippets.

View IvoLimmen's full-sized avatar
🏠
Working from home

Ivo Limmen IvoLimmen

🏠
Working from home
View GitHub Profile
@IvoLimmen
IvoLimmen / mvni
Last active March 11, 2024 09:14
Just build what is needed
#!/bin/bash
ARGS="$@"
set ARTIFACT=
for f in $(git status -s | cut -c 4- | cut -d/ -f1 - | sort -u)
do
if [ -d ${f} ] # must be a directory
then
if [ "${ARTIFACT}" == "" ]
@IvoLimmen
IvoLimmen / propdiff.groovy
Last active March 21, 2016 06:29
Needed a script that compared two (Java) property files
if (this.args.length != 2)
throw new IllegalArgumentException('Please pass two property files')
def base = new Properties()
def target = new Properties()
new File(".", this.args[0]).withInputStream {
stream -> base.load(stream)
}
new File(".", this.args[1]).withInputStream {
stream -> target.load(stream)