Skip to content

Instantly share code, notes, and snippets.

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: /usr/local/apache-maven
Java version: 11.0.4, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-5-amd64", arch: "amd64", family: "unix"
[DEBUG] Reading global settings from /usr/local/apache-maven/conf/settings.xml
[DEBUG] Reading user settings from /home/sb/.m2/settings.xml
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/sb/.m2/repository
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=359378, ConflictMarker.markTime=74555, ConflictMarker.nodeCount=2, ConflictIdSorter.graphTime=189775, ConflictIdSorter.topsortTime=159703, ConflictIdSorter.conflictIdCount=2, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1346332, ConflictResolver.conflictItemCount=2, DefaultDependencyCollector.collectTime=61583324, DefaultDependencyCollector.transformTime=3096983}
@steinarb
steinarb / kern.log
Created September 29, 2019 19:57
karaf som drepes rundt 06:32
Sep 29 06:31:18 cadalora kernel: [1764234.483257] QNetworkAccessM[25576]: segfault at 0 ip 00007f60bdd0fba4 sp 00007f606effa788 error 4 in libQt5Network.so.5.11.3[7f60bdcb2000+113000]
Sep 29 06:31:18 cadalora kernel: [1764234.487796] Code: 1c 00 00 00 00 48 8b 7b 10 eb df 0f 1f 00 c7 47 1c 00 00 00 00 c6 47 50 00 c3 5b c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 7f 78 <48> 8b 07 ff 60 20 66 0f 1f 44 00 00 53 48 89 fb bf 18 00 00 00 e8
Sep 29 06:32:13 cadalora kernel: [1764288.523800] fail2ban-server invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
Sep 29 06:32:13 cadalora kernel: [1764288.529796] fail2ban-server cpuset=/ mems_allowed=0
Sep 29 06:32:13 cadalora kernel: [1764288.532709] CPU: 0 PID: 1057 Comm: fail2ban-server Not tainted 4.19.0-6-amd64 #1 Debian 4.19.67-2
Sep 29 06:32:13 cadalora kernel: [1764288.536273] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
Sep 29 06:32:13 cadalora kernel: [1764288.538949] Call Trace:
Sep 29 06:32:13 cadalora kernel:
ReactDOM.render(
<App/>,
document.getElementById('root'));
@steinarb
steinarb / index.html
Last active May 2, 2020 07:36
Minimal html file loading a react.js application
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frontend Karaf Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
</head>
<body>
<div id="root"></div>
<script src="bundle.js" type="application/javascript"></script
<noscript>This webpage requires javascript in the browser!</noscript>
</body>
@steinarb
steinarb / pom.xml
Last active May 2, 2020 07:33
frontend-maven-plugin configuration
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<nodeVersion>v10.4.0</nodeVersion>
<workingDirectory>src/main/frontend</workingDirectory>
<installDirectory>target</installDirectory>
</configuration>
<executions>
@steinarb
steinarb / ReactServlet.java
Created October 12, 2019 17:30
A servlet returning index.html and bundle.js
public class ReactServlet extends HttpServlet {
private static final long serialVersionUID = 250817058831319271L;
// The paths used to serve index.html
private final List<String> routes = Arrays.asList("/", "/counter", "/about");
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) {
String pathInfo = request.getPathInfo();
try {
public interface AuthserviceDatabaseService extends DatabaseService {
}
public interface UkelonnDatabase extends DatabaseService {
String sumOverYearQuery();
String sumOverMonthQuery();
}
@Component(service=UkelonnDatabase.class, immediate=true)
public class PGUkelonnDatabaseProvider implements UkelonnDatabase {
private DataSourceFactory dataSourceFactory;
@Reference(target="(osgi.jdbc.driver.name=PostgreSQL JDBC Driver)")
public void setDataSourceFactory(DataSourceFactory dataSourceFactory) {
this.dataSourceFactory = dataSourceFactory;
}
}
@Component(service=UkelonnDatabase.class, immediate=true)
public class UkelonnDatabaseProvider implements UkelonnDatabase {
private DataSourceFactory dataSourceFactory;
@Reference(target="(osgi.jdbc.driver.name=derby)")
public void setDataSourceFactory(DataSourceFactory dataSourceFactory) {
this.dataSourceFactory = dataSourceFactory;
}
}