This file contains hidden or 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
docker run --rm -i kadock/pdftotext < in.pdf > out.txt |
This file contains hidden or 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
realpath() { | |
target=$1 | |
( | |
while true; do | |
cd "$(dirname "$target")" | |
target=$(basename "$target") | |
test -L "$target" || break | |
target=$(readlink "$target") | |
done |
This file contains hidden or 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
script { | |
if (currentBuild.previousBuild == null) { | |
echo 'No previous build. Setting FIRST_BUILD_OF_DAY=true' | |
env.FIRST_BUILD_OF_DAY='true' | |
} else { | |
long previousBuildDays = currentBuild.previousBuild.startTimeInMillis / (1000 * 60 * 60 * 24) | |
long currentBuildDays = currentBuild.startTimeInMillis / (1000 * 60 * 60 * 24) | |
if (previousBuildDays != currentBuildDays) { | |
echo 'Previous build was before today. Setting FIRST_BUILD_OF_DAY=true' | |
env.FIRST_BUILD_OF_DAY='true' |
This file contains hidden or 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/sh | |
if [ ! -e /var/run/docker.sock ]; then | |
exec /bin/sh /run-bats.sh "$@" | |
exit $? | |
fi | |
HOST_UID=${HOST_UID:-} | |
HOST_GID=${HOST_GID:-} | |
if [ "$(id -u)" != "0" ]; then |
This file contains hidden or 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 branch -r | cut -c 3- | sed -e s/\$/,/ | tr -d '\n' | rev | cut -c 2- | rev |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:owasp="https://jeremylong.github.io/DependencyCheck/dependency-check.1.7.xsd" | |
exclude-result-prefixes="owasp"> | |
<xsl:output method="xml" encoding="UTF-8" indent="yes"/> | |
<xsl:param name="cvssScoreThreshold">8</xsl:param> | |
<xsl:template match="/owasp:analysis"> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<testsuite tests="7" failures="2" name="PearTest" time="0.016" errors="2" skipped="2"> | |
<testcase classname="PearTest" name="testFailure" time="0.005"> | |
<failure type="java.lang.AssertionError">java.lang.AssertionError | |
at org.junit.Assert.fail(Assert.java:86) | |
at org.junit.Assert.assertTrue(Assert.java:41) | |
at org.junit.Assert.assertTrue(Assert.java:52) | |
at PearTest.testFailure(PearTest.java:23) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) |
This file contains hidden or 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
2017/05/20 16:42:49 [INFO] Packer version: 1.0.0 | |
2017/05/20 16:42:49 Packer Target OS/Arch: linux amd64 | |
2017/05/20 16:42:49 Built with Go Version: go1.8 | |
2017/05/20 16:42:49 Detected home directory from env var: /home/jenkins | |
2017/05/20 16:42:49 Using internal plugin for amazon-instance | |
2017/05/20 16:42:49 Using internal plugin for cloudstack | |
2017/05/20 16:42:49 Using internal plugin for virtualbox-iso | |
2017/05/20 16:42:49 Using internal plugin for azure-arm | |
2017/05/20 16:42:49 Using internal plugin for file | |
2017/05/20 16:42:49 Using internal plugin for hyperv-iso |
This file contains hidden or 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
vagrant box list | sed s/[,\(\)\/]/\ /g | awk '{print "~/.vagrant.d/boxes/" $1 "-VAGRANTSLASH-" $2 "/" $4 "/" $3}' |
This file contains hidden or 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
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=999 |