Skip to content

Instantly share code, notes, and snippets.

@bertfrees
bertfrees / README.md
Last active January 23, 2019 16:38
DAISY Pipeline Assignment

DAISY Pipeline Assignment

This page describes a work assignment based on the DAISY Pipeline framework and scripts. It has been created by the DAISY Pipeline team as part of the recruitment process for new developers, in order to better understand the candidates’ technical approaches when facing a real DAISY Pipeline work task.

Completing the assignment described in this page is excepted to take around 4 hours. This duration is of course only an estimate for information purpose only; the overall time spent on the assignment will largely depend on existing knowledge of the context, on technical familiarity with XSLT, on time required for reflexion, etc.

Introduction

#!/usr/bin/env bash
SERVER=192.168.0.12:8080
upload() {
curl -X POST -F track=@"$1" http://$SERVER
}
if [ $# -ne 1 ]; then
echo "Usage: $0 FILE|URL" >&2
@bertfrees
bertfrees / create_milestones.sh
Created January 31, 2017 11:26
Create the same milestone in several repositories at once
#!/usr/bin/env bash
set -e
title=$1
if [ -z "$title" ]; then
echo "Please specify a milestone title" >&2
exit 1
fi
shift
due_on=$1
if [ -z "$due_on" ]; then
#!/usr/bin/env bash
case $1 in
7) # the default
# JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
;;
8)
export JAVA_HOME=$(/usr/libexec/java_home) # /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
;;
*)
echo "Unsupported Java version: $1" >&2
@bertfrees
bertfrees / liblouis-mingw32 Dockerfile
Last active August 29, 2015 14:21
Dockerfile for cross-compiling liblouis, libxml2 and liblouisutdml for Windows
Dockerfile for cross-compiling liblouis, libxml2 and liblouisutdml for Windows