Skip to content

Instantly share code, notes, and snippets.

@karussell
karussell / OffheapUrlDataAccess.java
Created Sep 18, 2021 — forked from jtheuer/OffheapUrlDataAccess.java
Graphhopper offheap storage with URL loader.
View OffheapUrlDataAccess.java
import com.google.common.base.Preconditions;
import com.graphhopper.storage.DAType;
import com.graphhopper.storage.DataAccess;
import com.graphhopper.util.NotThreadSafe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xerial.larray.LByteArray;
import xerial.larray.japi.LArrayJ;
import java.io.ByteArrayInputStream;
@karussell
karussell / Lettuce.java
Last active Feb 24, 2021 — forked from eransharv/RedissonSSL.java
java lettuce redis client example using SSL
View Lettuce.java
client.setOptions(ClientOptions.builder().sslOptions(SslOptions.builder()
.keystore(new File("user.p12"), "test12".toCharArray())
.truststore(new File("keystore.jks"), "keystorepassword12")
.build()).build());