Use the class ZkAwareFederationAuthenticator
in your META-INF/context.xml
as described in https://cxf.apache.org/fediz-tomcat.html
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 | |
set -o pipefail | |
archive="$1" | |
fromImage="$2" | |
outputName=$(basename "$archive" ".tar.gz")-partial.tar | |
echo "Result will be in ${outputName}.gz" |
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
class ConfigException extends RuntimeException { | |
ConfigException(String message) { | |
super(message) | |
} | |
ConfigException(String message, Throwable cause) { | |
super(message, cause) | |
} | |
} |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz | |
CPU Family: 0x6 |
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
package ch.swissquant.gkb.ui.wro; | |
import static org.apache.commons.lang3.Validate.notNull; | |
import static org.apache.commons.lang3.Validate.validState; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; |
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
/** | |
* Manually load <code>web-fragment.xml</code> from JARs and class folders on the classpath. | |
* | |
* <p>Jetty can only find them automatically if the fragment is in a JAR in <code>WEB-INF/lib/</code>. | |
*/ | |
protected void loadWebFragments(WebAppContext ctx) { | |
Map<Resource, Resource> frags = getOrCreateFragmentResources(ctx); | |
try { | |
ArrayList<URL> urls = Collections.list(getClass().getClassLoader().getResources("META-INF/web-fragment.xml")); | |
urls.forEach(url -> { |
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 java.awt.geom.Rectangle2D; | |
import org.apache.pdfbox.text.PDFTextStripperByArea; | |
public class PageRegion { | |
private String name; | |
private Rectangle2D rect; | |
// Coordinates are in the order in which the Apache PDF-Box Debugger displays them |
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
/** Copyleft (C) 2016 by Aaron Digulla. Use as you wish. This copyright notice can be removed. */ | |
package bug507401; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
import java.util.List; |
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
FROM ubuntu:14.04.1 | |
MAINTAINER Wei-Ming Wu <[email protected]> | |
ADD chkconfig /sbin/chkconfig | |
ADD init.ora / | |
ADD initXETemp.ora / | |
@PARTS@ | |
RUN cat /@[email protected]?? > /@[email protected] |
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
package de.pdark.h2.txtest; | |
import static org.junit.Assert.*; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import org.h2.jdbcx.JdbcDataSource; | |
import org.junit.Test; | |
public class H2TransactionTest { |
NewerOlder