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 / compiler_mirror_error
Last active January 14, 2016 15:28
How to resolve Scala IDE / Maven errors: There was an error initializing the Scala compiler: could not find a required class: object scala.runtime in compiler mirror scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
I came across this problem while trying to add the Datastax Cassandra driver
as a Maven dependency to a Scala project.
After adding the dependency to the pom, Scala IDE (3.0.1) complains with this
error yes/no confirmation box.
Add Scala library to project classpath? There was an error initializing the
Scala compiler: could not find a required class: object scala.runtime in
compiler mirror. No/Yes
@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>
@tjayr
tjayr / .gtkrc-2.0
Created September 17, 2013 09:37
Use this binding to enable cursor key navigation of projects in the Package Explorer/Project Explorer panes in Eclipse on Linux. Save to the file ~/.gtkrc-2.0 (aka as /home/<user>/.gtkrc-2.0 ) Restart any running Eclipse instances for changes to take effect.
binding "gtk-binding-tree-view" {
bind "Left" { "expand-collapse-cursor-row" (0,0,0) }
bind "Right" { "expand-collapse-cursor-row" (0,1,0) }
}
class "GtkTreeView" binding "gtk-binding-tree-view"
@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;