Skip to content

Instantly share code, notes, and snippets.

@tjayr
tjayr / borderlands3-protondb.md
Last active December 30, 2020 15:55
Observations on running Borderlands 3 on Steam with Linux / Protondb

Introduction

I got this working with some significant effort using Proton 5.0-10. Pretty unlikely someone will casually go to all of this effort. It took a few days to figure this all out.

For reference this is my setup:

Distro:Ubuntu 20.04.1 LTS
Kernel:5.4.0-58-generic
RAM:32 GB
@tjayr
tjayr / TestCsvRoute.java
Last active November 22, 2015 22:28
TestCsvRoute
package com.guru.etl.routes;
package com.guru.etl.routes;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.apache.camel.*;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.SimpleRegistry;
import org.apache.camel.model.dataformat.CsvDataFormat;
@tjayr
tjayr / arq-wlp
Created May 1, 2015 21:52
Arquillian WLP Log Output
/home/tony/software/jdk1.8.0_05/bin/java -Dmaven.home=/home/tony/software/idea-IC-141.177.4/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/tony/software/idea-IC-141.177.4/plugins/maven/lib/maven3/bin/m2.conf -Didea.launcher.port=7537 -Didea.launcher.bin.path=/home/tony/software/idea-IC-141.177.4/bin -Dfile.encoding=UTF-8 -classpath /home/tony/software/idea-IC-141.177.4/plugins/maven/lib/maven3/boot/plexus-classworlds-2.4.jar:/home/tony/software/idea-IC-141.177.4/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.1 clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Arquillian Container WebSphere Liberty Profile Managed 8.5 1.0.0.Final-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default
@tjayr
tjayr / messages.log
Created March 22, 2015 15:39
WLP log file errors when using cdi-1.0 with ejbRemote-3.2 feature
********************************************************************************
product = WebSphere Application Server 2015.3.0.0 (wlp-1.0.9.20150307-1507)
wlp.install.dir = /home/tony/software/wlp-beta-3.0/wlp/
java.home = /home/tony/software/jdk1.7.0_21/jre
java.version = 1.7.0_21
java.runtime = Java(TM) SE Runtime Environment (1.7.0_21-b11)
os = Linux (3.13.0-46-generic; amd64) (en_IE)
process = 27257@tony-pc
********************************************************************************
[22/03/15 14:55:05:749 GMT] 00000001 com.ibm.ws.kernel.launch.internal.FrameworkManager A CWWKE0001I: The server default has been launched.
@tjayr
tjayr / HelloWorldActors.md
Last active August 29, 2015 14:09
Hello World actor concurrency showing examples with Scala/Akka and Erlang

Scala / Akka

import akka.actor.Actor
import com.clearprecision.neo4jscala.domain.Hello

class HelloActor extends Actor {

  override def receive: Receive = {
@tjayr
tjayr / AmqClientTest.java
Last active August 29, 2015 14:07
Java client code showing how to connect to a rabbitmq server, retrieve a message, convert its body to a string and disconnects.
package com.liberty.it.dws;
import java.io.IOException;
import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
@tjayr
tjayr / dps_topology_sync.java
Last active August 29, 2015 13:57
Topology sync algorithm - typically 53-58 seconds to write 950 MOs for initial sync of empty database and averages about 25 seconds to do a resync where no objects are created.
/** Current released version **/
public int invokeTopologySync(final ComponentEvent event, final Map<String, Object> headersSpec) {
// walk the tree and persist MOs into DPS
final Map<String, Object> payload = ((Map<String, Object>) event.getPayload());
final Set<String> fdnsTree = payload.keySet();
initModelServiceOperations(headersSpec);
final String mecfdn = (String) headersSpec.get("fdn");
try {
@tjayr
tjayr / gist:9818840
Last active August 29, 2015 13:57
Module name contains invalid characters, or empty segments (JBoss 7, EAP 6)
I encountered this when deploying an ear file into JBoss 7.1 (EAP 6.1.1).
Googling revealed no concrete answers, so hopefully this help someone else.
The ear file is built with Maven and notably specifies several manifest entries.
A carriage return in the Dependencies element of the maven pom caused this problem.
The Eclipse code formatter reformatted the code and wrapped the line.
Ensuring the manifest entry is on one line will resolve this problem.
@tjayr
tjayr / post-commit
Created January 22, 2014 21:33
Git post-commit hook for triggering a jenkins build on a commit. Place in <repo>/.git/hooks and make it executable. Change jenkins and commit urls obviously
curl <JENKIS_URL>/git/notifyCommit?url=<GIT_CLONE_URL>
curl http://localhost:8080/git/notifyCommit?url=file:///home/tony/git-projects/test-jenkins-hooks
@tjayr
tjayr / JBoss zipped distribution pom download for arquillian tests
Created September 28, 2013 10:55
Using the maven-dependency-plugin to automatically download and unpack a JBoss distribution and then execute arquillian tests against deployments on the server.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>test</artifactId>
<properties>
<jboss.version>7.2.0.Alpha1-redhat-4</jboss.version>
</properties>
<repositories>