Skip to content

Instantly share code, notes, and snippets.

View szpak's full-sized avatar

Marcin Zajączkowski szpak

View GitHub Profile
@szpak
szpak / general-issues-and-fixes.md
Last active June 16, 2022 10:30
Hyperbook NH5/Clevo NH55RCQ (post-)installation issues (and fixes) with Linux (Fedora 30)

Hyperbook NH5/Clevo NH55RCQ (post-)installation issues (and fixes) with Linux (Fedora 30+)

Intro

This document describes my attemt to get Linux (Fedora 30) up and running in a sensible way on Hyperbook NH5/Clevo NH55RCQ.

That laptop has (at the time of purchase - May 2019) really nice specification, but due to positioning it as a "gaming laptop" the Linux-friendliness doesn't have a high priority. Although, it is possible to run it directly from a LiveUSB with Fedora 30, I have spent (definitely too) much time trying to solve the problems I encountered down the line. In hindsight, I could choose something more Linux-supported, but anyway, I created that list for other desperados to be up and running in several minutes instead of several dozen hours :).

Major

@szpak
szpak / jcenter-migration-issue.md
Created February 8, 2021 20:35
jcenter migration to Maven Central - issue template

JCenter will be shut down soon, migrate to Maven Cenral

This project seems to use JCenter to kept the binary artifacts. However, JCenter (with Bintray) is shuting down rather soon (1st May 2021, with read-only mode starting with 1st Feb), so it would be good to migrate releasing to Maven Central (and possibly synchronize old releases with it). Depending on dependencies in your own project can also be risky :-).

For sample project configuration see: https://github.com/rwinch/gradle-publish-ossrh-sample

And for sync of the old versions: https://www.jfrog.com/confluence/display/BT/Syncing+with+Third-Party+Platforms

@szpak
szpak / build.gradle
Created December 19, 2011 23:07
build.gradle with something similar to Maven's profiles
apply plugin: 'java'
apply plugin: 'signing'
version = '0.5.3-SNAPSHOT'
isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = 1.5
//targetCompatibility has the same value as sourceCompatibility by default
//to enable fancy test reports with ReportNG
isReportNGEnabled = hasProperty("reports")
@szpak
szpak / humanReadableResults1562425147999.txt
Created July 6, 2019 21:48
Results for JMH execution for BlockHound - approach 2 - https://github.com/reactor/BlockHound/pull/35
# JMH version: 1.21
# VM version: JDK 11.0.3, OpenJDK 64-Bit Server VM, 11.0.3+7
# VM invoker: /usr/lib/jvm/java-11-openjdk-11.0.3.7-5.fc30.x86_64/bin/java
# VM options: <none>
# Warmup: 3 iterations, 10 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: reactor.blockhound.BlockHoundBlockingAllowedThreadBenchmark.baselineBlockingCall
@szpak
szpak / mockito-java8-java8u60-regression.txt
Created November 11, 2015 12:24
mockito-java8 java8u60 regression
> shouldAllowToUseAssertionInLambdaWithPrimitiveAsArgument
java.lang.NullPointerException
at info.solidsoft.mockito.java8.AssertionMatcherTest.shouldAllowToUseAssertionInLambdaWithPrimitiveAsArgument(AssertionMatcherTest.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
@szpak
szpak / FestConditionFactory.java
Created June 10, 2012 16:26
PoC of ConditionFactory for FEST-Assert
package com.jayway.awaitility.core;
import com.jayway.awaitility.Duration;
import javassist.util.proxy.MethodFilter;
import javassist.util.proxy.MethodHandler;
import javassist.util.proxy.ProxyFactory;
import org.fest.assertions.api.BigDecimalAssert;
import org.fest.assertions.api.IntegerAssert;
import org.fest.assertions.api.ListAssert;
import org.fest.assertions.core.Assert;
@szpak
szpak / SpringReportingAnnotatedEmbedderRunner.java
Created January 25, 2012 22:57
Not working with jbehave-maven-plugin SpringReportingAnnotatedEmbedderRunner
/**
* Copyright (c) 2012 Alexander Lehmann
*
* All rights reserved.
*
* More info: https://github.com/alexlehm/jbehave-junit-examples/
*/
package runner;
import org.jbehave.core.junit.spring.SpringAnnotatedEmbedderRunner;
{"url":"https://api.github.com/repos/4finance/micro-common-release/milestones/2","labels_url":"https://api.github.com/repos/4finance/micro-common-release/milestones/2/labels","id":961444,"number":2,"title":"0.1.15","description":null,"creator":{"login":"4financeBot","id":10115229,"avatar_url":"https://avatars.githubusercontent.com/u/10115229?v=3","gravatar_id":"","url":"https://api.github.com/users/4financeBot","html_url":"https://github.com/4financeBot","followers_url":"https://api.github.com/users/4financeBot/followers","following_url":"https://api.github.com/users/4financeBot/following{/other_user}","gists_url":"https://api.github.com/users/4financeBot/gists{/gist_id}","starred_url":"https://api.github.com/users/4financeBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4financeBot/subscriptions","organizations_url":"https://api.github.com/users/4financeBot/orgs","repos_url":"https://api.github.com/users/4financeBot/repos","events_url":"https://api.github.com/users/4financeBot/ev
@szpak
szpak / gist:03c36a27ac24a896a557
Created May 14, 2014 20:52
NPE on missing dependency in Gradle 1.12
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> Could not resolve junit:junit:4.111.
Required by:
info.solidsoft.gradle.pitest:gradle-pitest-plugin:0.33.1-SNAPSHOT
> java.lang.NullPointerException (no error message)
* Try: