Skip to content

Instantly share code, notes, and snippets.

View rkettelerij's full-sized avatar

Richard Kettelerij rkettelerij

View GitHub Profile
@rkettelerij
rkettelerij / environment.plist
Created October 30, 2011 15:48
M2_HOME trouble
{
"M2_HOME"="/usr/share/maven";
M2="/usr/share/maven/bin";
}
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="java.lang.System"/>
<property name="targetMethod" value="setProperty"/>
<property name="arguments">
<list>
<value>logsDir</value>
<value>${logs.dir}</value>
</list>
</property>
</bean>
<cache name="httpResponses"
maxElementsInMemory="1"
eternal="true"
overflowToDisk="false"
diskPersistent="false"
memoryStoreEvictionPolicy="LFU"/>
@rkettelerij
rkettelerij / gist:7427673
Created November 12, 2013 08:50
OrientDB feature for Apache Karaf
<?xml version="1.0" encoding="UTF-8"?>
<features name="features" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<feature name='orientdb' version='1.6'>
<bundle>mvn:com.orientechnologies/orient-commons/1.6</bundle>
<bundle>mvn:net.java.dev.jna/jna/4.0.0</bundle>
<bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
<bundle>mvn:org.javassist/javassist/3.18.1-GA</bundle>
<bundle>mvn:com.orientechnologies/orientdb-nativeos/1.6</bundle>
<bundle>mvn:com.orientechnologies/orientdb-core/1.6</bundle>
<bundle>mvn:com.orientechnologies/orientdb-object/1.6/bundle</bundle>
@rkettelerij
rkettelerij / gist:2ddc60018cee1155acbe
Created August 14, 2015 19:43
Add boot2docker IP to your hosts file
echo "$(boot2docker ip 2> /dev/null)" dockerhost | sudo tee -a /private/etc/hosts
-verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:"/path/to/gc.log" -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M
@rkettelerij
rkettelerij / LaunchJenkinsSlave.bat
Created August 23, 2016 13:26
Launch a Jenkins slave on a Windows node and authenticate against a Jenkins master
SET slaveName=<hostname of current server>
SET slaveSecret=<secret>
SET masterName=<hostname of Jenkins master node>
SET masterPort=8080
:: Download slave.jar
bitsadmin.exe /transfer "Downloading Jenkins slave.jar, please wait" http://%masterName%:%masterPort%/jnlpJars/slave.jar C:\slave.jar
:: Start slave
Jun 17 11:53:24 some-machine nomad[4002]: SIGABRT: abort
Jun 17 11:53:24 some-machine nomad[4002]: PC=0x46ec31 m=0 sigcode=0
Jun 17 11:53:24 some-machine nomad[4002]: goroutine 0 [idle]:
Jun 17 11:53:24 some-machine nomad[4002]: runtime.futex(0x577d588, 0x80, 0x0, 0x0, 0x0, 0x46e855, 0x585003, 0x9a51e44, 0x7ffed0b6b538, 0x40fedf, ...)
Jun 17 11:53:24 some-machine nomad[4002]: #011runtime/sys_linux_amd64.s:567 +0x21
Jun 17 11:53:24 some-machine nomad[4002]: runtime.futexsleep(0x577d588, 0x0, 0xffffffffffffffff)
Jun 17 11:53:24 some-machine nomad[4002]: #011runtime/os_linux.go:45 +0x46
Jun 17 11:53:24 some-machine nomad[4002]: runtime.notesleep(0x577d588)
Jun 17 11:53:24 some-machine nomad[4002]: #011runtime/lock_futex.go:151 +0x9f
Jun 17 11:53:24 some-machine nomad[4002]: runtime.stopm()
Jun 18 10:47:54 some-nomad-client nomad[22609]: SIGABRT: abort
Jun 18 10:47:54 some-nomad-client nomad[22609]: PC=0x46ec31 m=0 sigcode=0
Jun 18 10:47:54 some-nomad-client nomad[22609]: goroutine 0 [idle]:
Jun 18 10:47:54 some-nomad-client nomad[22609]: runtime.futex(0x577d588, 0x80, 0x0, 0x0, 0x0, 0x7fffb028a3f8, 0x43fd53, 0xc000195648, 0x7fffb028a418, 0x40fedf, ...)
Jun 18 10:47:54 some-nomad-client nomad[22609]: #011runtime/sys_linux_amd64.s:567 +0x21
Jun 18 10:47:54 some-nomad-client nomad[22609]: runtime.futexsleep(0x577d588, 0x7fff00000000, 0xffffffffffffffff)
Jun 18 10:47:54 some-nomad-client nomad[22609]: #011runtime/os_linux.go:45 +0x46
Jun 18 10:47:54 some-nomad-client nomad[22609]: runtime.notesleep(0x577d588)
Jun 18 10:47:54 some-nomad-client nomad[22609]: #011runtime/lock_futex.go:151 +0x9f
Jun 18 10:47:54 some-nomad-client nomad[22609]: runtime.stoplockedm()