- repose
- documentation
- repose-aggregator
- commons
- classloader
- configuration
- jetty
- commons
- utilities
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
puppet agent output: | |
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install java' returned 100: Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
E: Unable to locate package java | |
Error: /Stage[main]/Java/Package[java]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install java' returned 100: Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
E: Unable to locate package java |
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 org.scalatest.{Matchers, FunSpec} | |
class RomanTest extends FunSpec with Matchers { | |
val testCases = Map( | |
"CCXCI" -> 291 | |
) | |
describe("Converting arabic numerals to roman numerals") { | |
describe("Defining the range of our problem") { |
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
object RomanConvert { | |
val arabic = List( | |
"I" -> 1, | |
"IV" -> 4, | |
"V" -> 5, | |
"IX" -> 9, | |
"X" -> 10, | |
"XL" -> 40, | |
"L" -> 50, | |
"XC" -> 90, |
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
$ unzip -l war-1.NOPE.war | |
Archive: war-1.NOPE.war | |
Length Date Time Name | |
--------- ---------- ----- ---- | |
0 2014-09-23 12:05 META-INF/ | |
25 2014-09-23 12:05 META-INF/MANIFEST.MF | |
0 2014-09-23 12:05 WEB-INF/ | |
0 2014-09-23 12:05 WEB-INF/classes/ | |
0 2014-09-23 11:29 WEB-INF/classes/org/ | |
0 2014-09-23 11:29 WEB-INF/classes/org/protorepose/ |
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 org.openrepose.spring | |
import java.net.URL | |
import org.openrepose.commons.config.parser.ConfigurationParserFactory | |
import org.openrepose.commons.config.resource.impl.BufferedURLConfigurationResource | |
import org.openrepose.core.container.config.ContainerConfiguration | |
import org.openrepose.core.systemmodel.SystemModel | |
import scala.reflect.ClassTag |
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
def withContext(f: LoggingServiceImpl => Unit) = { | |
val loggingService = new LoggingServiceImpl() | |
val context = LogManager.getContext(false).asInstanceOf[LoggerContext] | |
try { | |
f(loggingService) | |
} finally { | |
System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_FACTORY) | |
context.reconfigure | |
StatusLogger.getLogger.reset | |
} |
I hereby claim:
- I am dkowis on github.
- I am dkowis (https://keybase.io/dkowis) on keybase.
- I have a public key whose fingerprint is 98EC 7077 CB97 00A1 F2E7 3834 C9DF FAF4 70EB 739B
To claim this, I am signing this object:
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
def parseDelegationValues(delegationValues: Seq[String]): Seq[HttpDelegationHeaderBean] = { | |
// TODO: Performance concerns | |
delegationValues.map(parseDelegationHeader).filter { | |
case Success(_) => | |
true | |
case Failure(e) => | |
LOG.warn("Failed to parse a delegation header: " + e.getMessage) | |
false | |
}.map(_.get) |
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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>xml-maven-plugin</artifactId> | |
<version>1.0</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>transform</goal> | |
</goals> | |
</execution> |