Skip to content

Instantly share code, notes, and snippets.

#docker build -t my/sapmachine-github-issue-615 .
#docker run -it my/sapmachine-github-issue-615
FROM sapmachine:11.0.6
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales vim
RUN sed -i -e 's/# fr_CH.UTF-8 UTF-8/fr_CH.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=fr_CH.UTF-8
@picpromusic
picpromusic / keybase.md
Created November 3, 2017 06:21
keybase.md

Keybase proof

I hereby claim:

  • I am picpromusic on github.
  • I am picpromusic (https://keybase.io/picpromusic) on keybase.
  • I have a public key ASDDCy27vy5M3bMcesTpYqsM7uBA28lBPSgditMktAl1Nwo

To claim this, I am signing this object:

# Run complete. Total time: 00:40:31
Benchmark Mode Cnt Score Error Units
MyBenchmark.testNamedPredicate thrpt 200 45938970,625 ± 615390,483 ops/s
MyBenchmark.testPredicate thrpt 200 23062083,641 ± 154933,675 ops/s
MyBenchmark.testPredicateReal thrpt 200 48308347,165 ± 395810,356 ops/s
MyBenchmark.testToString thrpt 200 138366708,182 ± 1177786,195 ops/s
MyBenchmark.testToStringNamed thrpt 200 252872229,907 ± 8044289,516 ops/s
MyBenchmark.testToStringReal thrpt 200 6670148,202 ± 40200,984 ops/s
java.base java/io/InterruptedIOException.class bytesTransferred I null
java.base java/io/InvalidClassException.class classname Ljava/lang/String; null
java.base java/io/OptionalDataException.class eof Z null
java.base java/io/OptionalDataException.class length I null
java.base java/io/StreamTokenizer.class nval D null
java.base java/io/StreamTokenizer.class sval Ljava/lang/String; null
java.base java/io/StreamTokenizer.class ttype I null
java.base java/io/WriteAbortedException.class detail Ljava/lang/Exception; null
java.base java/lang/reflect/ProxyGenerator$ExceptionTableEntry.class catchType S null
java.base java/lang/reflect/ProxyGenerator$ExceptionTableEntry.class endPc S null
@picpromusic
picpromusic / JBehaveScopes.markdown
Last active December 18, 2015 02:09
JBehave Scopes

DI-Scopes for JBehave at scenario- and storylevel

Sometimes scopes in JBehave-based tests of configured injections are different to the original application configurations. Let's say we have a webapplication that configures some injections as a session-based scope. If we now want to test parts of the application without a real servlet context we sometimes need a diffrent scope for some of theses injections. Usefull scopes in jbehave-based tests are scenario- and story-scopes. Naturally we can use @Before/After-Scenario/Story Annotations to handle the the reset manually, but it is much easier and cleaner to write such things as

bind(Interface.class).to(Implementation.class).in(JBehaveScopes.SCENARIO);

You can investigate an example here : ServletWithScopeTest.java

@picpromusic
picpromusic / CC_INTERP_ERROR2.log
Created November 25, 2011 14:31
Error while compile jdk8-hotspot with CC_INTERP2
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
cd /home/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make; \
make VM_TARGET=jvmg1 generic_build1 ALT_OUTPUTDIR=../../hotspot_c2_debug
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
make[1]: Entering directory `/home/.extraSpace/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make'
mkdir -p ../../hotspot_c2_debug
cd ../../hotspot_c2_debug; \
make -f /home/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make/linux/Makefile \
@picpromusic
picpromusic / CC_INTERP_ERROR1.log
Created November 25, 2011 14:20
Error while compile jdk8-hotspot with CC_INTERP
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
cd /home/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make; \
make VM_TARGET=jvmg1 generic_build1 ALT_OUTPUTDIR=../../hotspot_c2_debug
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
make[1]: Entering directory `/home/.extraSpace/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make'
mkdir -p ../../hotspot_c2_debug
cd ../../hotspot_c2_debug; \
make -f /home/sebastian/deve/compatiblefieldaccess/hsx-hotspot-main/hotspot/make/linux/Makefile \