This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git version | |
# git version 2.20.1 | |
# Setup the Git user config | |
git config --global --add user.name "Fred Nurk" | |
git config --global --add user.email "fred.nurk@example.com" | |
mkdir git-test | |
cd git-test | |
git init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-AzureRmAccount | |
$subs = Get-AzureRmSubscription | |
$subs | |
Set-AzureRmContext -SubscriptionObject $subs[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab('org.kohsuke:github-api:1.77') | |
import org.kohsuke.github.* | |
import org.apache.commons.io.IOUtils | |
GitHub github = GitHub.connect() | |
PagedIterable<GHLicense> licenses = github.listLicenses() | |
println 'Known licenses:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.xml.StreamingMarkupBuilder | |
import java.util.jar.JarFile | |
import static java.util.zip.ZipFile.OPEN_READ | |
JarFile sources = new JarFile(new File('tika-parsers-1.12-sources.jar'), true, OPEN_READ) | |
sources.getInputStream(sources.getEntry('org/apache/tika/parser/audio/AudioParser.java')).withReader { reader -> | |
def builder = new StreamingMarkupBuilder() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab('org.spockframework:spock-core:1.0-groovy-2.4') | |
@Grab('software.betamax:betamax-junit:2.0.0-alpha-1') | |
@Grab('org.glassfish.jersey.core:jersey-client:2.22.1') | |
import org.junit.Rule | |
import software.betamax.ProxyConfiguration | |
import software.betamax.TapeMode | |
import software.betamax.junit.Betamax | |
import software.betamax.junit.RecorderRule | |
import spock.lang.Specification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project.with { | |
//See: https://docs.gradle.org/current/dsl/org.gradle.api.reporting.ReportingExtension.html | |
reporting { | |
baseDir "$publishDirPath/reports" | |
} | |
//Used by the groovydoc task | |
docsDirName = "$publishDirPath/api" | |
distsDirName = "${publishDirPath}/dist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(For OS X) | |
See: https://www.jetbrains.com/idea/help/tuning-intellij-idea.html | |
> mkdir ~/Library/Preferences/IntelliJ\ IDEA\ 14\ CE/ | |
> cp /Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/bin/idea.vmoptions ~/Library/Preferences/IntelliJ\ IDEA\ 14\ CE/ | |
> vi ~/Library/Preferences/IntelliJ\ IDEA\ 14\ CE/idea.vmoptions | |
Add the line below: | |
-Duser.name=Duncan Dickinson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Ensure that you are running JDK 7 and Maven 2.2.1 | |
mkdir arms | |
cd arms | |
git clone https://github.com/qcif/redbox-rdsi.git src | |
cd src | |
mvn clean install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Ensure that you are running JDK 7 and Maven 2.2.1 | |
mkdir arms | |
cd arms | |
git clone https://github.com/qcif/redbox-rdsi.git src | |
cd src | |
mvn clean package -Pbuild-package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Stage 1: install required packages | |
sudo apt-get install openjdk-7-jre |