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
[info] Loading global plugins from /home/dkowis/.sbt/plugins | |
[info] Loading project definition from /home/dkowis/gitwork/personal/play/hello/project | |
[error] java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin$.ideaSettings()Lscala/collection/Seq; | |
[error] Use 'last' for the full log. | |
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? l | |
[info] Loading global plugins from /home/dkowis/.sbt/plugins | |
[debug] Running task... Cancelable: false, max worker threads: 4, check cycles: false | |
[debug] | |
[debug] Initial source changes: | |
[debug] oved:Set() |
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
[INFO] Compiling 73 Scala sources and 1 Java source to /home/dkowis/gitwork/repose/api-checker/core/2.11/target/classes... | |
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/components/checker/Config.scala:35: method tpe in trait AnnotationApi is deprecated: Use `tree.tpe` instead | |
[WARNING] universe.typeOf[Config].members.filter(i => i.annotations.map(a => a.tpe).contains(affectsCheckerType)) | |
[WARNING] ^ | |
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/components/checker/util/TransformPool.scala:31: class LinkedList in package mutable is deprecated: Low-level linked lists are deprecated due to idiosyncrasies in interface and incomplete features. | |
[WARNING] private val activeGauges = new LinkedList[Gauge[Int]] | |
[WARNING] ^ | |
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/com |
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
Running com.rackspace.com.papi.components.checker.handler.InstrumentedHandlerSuite | |
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor registerMBean | |
FINER: ObjectName = JMImplementation:type=MBeanServerDelegate | |
Aug 22, 2015 5:05:03 PM com.sun.jmx.mbeanserver.Repository addMBean | |
FINER: name = JMImplementation:type=MBeanServerDelegate | |
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor addObject | |
FINER: Send create notification of object JMImplementation:type=MBeanServerDelegate | |
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor sendNotification | |
FINER: JMX.mbean.registered JMImplementation:type=MBeanServerDelegate | |
Aug 22, 2015 5:05:03 PM com.sun.jmx.mbeanserver.Repository contains |
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.softnetwork.sbt.plugins | |
import sbt._ | |
import Keys._ | |
import java.io.File | |
import Path.relativeTo | |
import xsbti.api.Definition | |
object GroovyPlugin extends Plugin { |
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
# Construct a significantly better colorized maven stuff | |
# Formatting constants | |
BOLD=`tput bold` | |
UNDERLINE_ON=`tput smul` | |
UNDERLINE_OFF=`tput rmul` | |
TEXT_BLACK=`tput setaf 0` | |
TEXT_RED=`tput setaf 1` | |
TEXT_GREEN=`tput setaf 2` | |
TEXT_YELLOW=`tput setaf 3` | |
TEXT_BLUE=`tput setaf 4` |
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
private def getPreferredHeader(headerName: String, getFun: String => List[String]): List[String] = { | |
case class HeaderValue(headerValue: String) { | |
val value = headerValue.split(";").head | |
val quality = { | |
try { | |
val headerParameters: Array[String] = headerValue.split(";").tail | |
val qualityParameters: Option[String] = headerParameters.find(param => "q".equalsIgnoreCase(param.split("=").head.trim)) | |
qualityParameters.map(_.split("=", 2)(1).toDouble).getOrElse(1.0) | |
} catch { | |
case e: NumberFormatException => throw new QualityFormatException("Quality was an unparseable value", e) |
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
# set it to use ctrl-a instead of ctrl b | |
unbind C-b | |
set -g prefix C-a | |
# less escape time, because tmux waits for one | |
# book recommends 1 | |
set -s escape-time 1 | |
# start stuff at 1, not 0 | |
set -g base-index 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
import org.spockframework.runtime.SpockAssertionError | |
import spock.lang.Specification | |
import spock.util.concurrent.PollingConditions | |
class TimeoutExceptionProof extends Specification { | |
final def pollingConditions = new PollingConditions(timeout: 10, initialDelay: 1) | |
def "why does it fail"() { |
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> |
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) |