Skip to content

Instantly share code, notes, and snippets.

View usommerl's full-sized avatar

Uwe Sommerlatt usommerl

View GitHub Profile
#!/usr/bin/env amm
interp.repositories() ++= Seq(coursierapi.MavenRepository.of("https://jitpack.io"))
@
import $ivy.`com.github.andyglow::scala-jsonschema-core:0.7.1`
import $ivy.`com.github.andyglow::scala-jsonschema-circe-json:0.7.1`
import $ivy.`io.circe::circe-parser:0.12.3`
import $ivy.`io.circe::circe-json-schema:0.1.0`
import cats.data.ValidatedNel
@usommerl
usommerl / git-push-recursive-test.sh
Last active September 4, 2017 15:47
Run without arguments. Creates and executes a scenario to test git push --recurse-submodules=on-demand
#! /bin/bash
set -o errexit
set -o nounset
set -o pipefail
nameProjectX='root-project'
nameProjectA='A'
nameProjectB='B'
nameProjectC='C'
set linkanimations
set noautofocus
set autohidecursor
set cncpcompletion
unmap a
unmap b
unmap D
unmap e
unmap E
unmap O
@usommerl
usommerl / README
Last active August 29, 2015 14:01
Add language files to a Play! application after it has been published with 'play dist'
I assume your application name is 'myapp'.
Extract the folder in the zip file and enter the 'conf' directory.
$ cd myapp-1.0-SNAPSHOT/conf
Edit the 'application.conf' file and add language files. Package your modifications in a jar file.
All files must reside in the root of the jar file.
$ jar -cf myapp.customisation.jar application.conf messages ...
#!/bin/bash
# We need the TAB character for SED (Mac OS X sed does not understand \t)
TAB="$(printf '\t')"
function abort {
echo "$(tput setaf 1)$1$(tput sgr0)"
exit 1
}