One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Extract public key from pem private key | |
ssh-keygen -y -f KEYFILE.pem |
public String getCarInsuranceName(Optional<Person> person) { | |
return person.flatMap(Person::getCar) | |
.flatMap(Car::getInsurance) | |
.map(Insurance::getName) | |
.orElse("Unknown"); | |
} |
package com.agilogy.spray.cors | |
import spray.http.{HttpMethods, HttpMethod, HttpResponse, AllOrigins} | |
import spray.http.HttpHeaders._ | |
import spray.http.HttpMethods._ | |
import spray.routing._ | |
// see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS | |
trait CORSSupport { | |
this: HttpService => |
Purge messages using the activemq-admin command line: | |
activemq-admin purge --jmxurl service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi --jmxuser camel --jmxpassword password purge com.test.queue.dlq | |
JMX needs to be enabled to purge messages, check ./conf/activemq.xml has the createConnector enabled: | |
<managementContext> | |
<managementContext createConnector="true"/> | |
</managementContext> |
Checkout pull request | |
git fetch origin pull/<pull request number>/head:<destination branch> | |
git checkout <destination branch> | |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
Logstash config file for log4j2 pattern: | |
[%d{dd/MM/yyyy HH:mm:ss.SSS}][SERVICE_NAME][%-5level][%t]:[%X{correlation-id}][%c{1}.%M:%L] - %m%n | |
Run logstash: | |
> bin/logstash -f conf/logstash-syslog.conf --auto-reload | |
--- |
Looks at the dependencies after final resolution and looks for mismatches in your dependencyManagement section: | |
> mvn dependency:analyze-dep-mgt | |
Resolving conflicts with dependency tree: | |
> mvn dependency:tree -Dverbose -Dincludes=commons-collections | |
More info: http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html |
<Loggers> | |
<logger name="org.springframework.boot.actuate.metrics.statsd.StatsdMetricWriter" additivity="false" level="error"> | |
<appender-ref ref="console_appender" /> | |
</logger> | |
<Root level="trace"> | |
<AppenderRef ref="console_appender" level="debug"/> | |
</Root> | |
</Loggers> |