Skip to content

Instantly share code, notes, and snippets.

@karussell
karussell / OffheapUrlDataAccess.java
Created September 18, 2021 09:08 — forked from jtheuer/OffheapUrlDataAccess.java
Graphhopper offheap storage with URL loader.
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 / customizable-routing.ipynb
Last active July 28, 2020 12:33
customizable routing - the notebook needs to be trusted to run JavaScript which is required for the leaflet maps or view it on https://nbviewer.jupyter.org/gist/karussell/5b799b253e608a93aeb6b120ccc8e67a
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karussell
karussell / price.md
Last active March 14, 2024 10:18
hetzner pricing for 256GB RAM servers and beyond
name CPU 256GB-price max GB max-price price/1GB CPU Passmark Benchmark
SB (auction) Xeon® E5-1650 v3 Hexa-Core ~60€ 256 ~60€ 0.23 10413 (single: 2123)
SB (auction) Xeon W-2145 8-Core ~100€ 256 ~100€ 0.39 18057 (single: 2610)
AX161 EPYC™ 7502P 32-Core Zen2 267€ 1024 727€ 0.71-1.04 48995 (single: 1894)
AX162-R EPYC™ 9454P 48-Core Zen4 249€ 1152 663€ 0.58-0.97 96088 (single: 2979)
PX93 Xeon W-2295 18-Core 267€ 512 463€ 0.9 -1.04 31484 (single: 2673)
DX152 2*Xeon SP Silver 10-Core 268€ 768 492€ 0.640-1.07 19256*2
DX153 2*Xeon Silver 4410Y 12-Core 405€ 1024 73
@karussell
karussell / install-android-sdk-linux.txt
Last active May 31, 2019 10:54
Install Android SDK for graphhopper/android
https://developer.android.com/studio/#downloads => sdk-tools-linux-4333796.zip
mkdir android-sdk-linux
cd android-sdk-linux
unzip ~/Downloads/sdk-tools-linux-4333796.zip
android-sdk-linux/tools/bin/sdkmanager "build-tools;27.0.3"
android-sdk-linux/tools/bin/sdkmanager "platforms;android-27"
# building with JDK 11 fails currently with javax/xml/something not available
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
mvn -P include-android clean install -DskipTests=true
@karussell
karussell / preview-git-pull-request.txt
Last active April 30, 2019 17:10
Preview git merge
This is a lot easier: https://gist.github.com/piscisaureus/3342247
Step 1: Check out a new branch to test the changes — run this from your project directory
git checkout -b dajac-jsoup-1.7.1 master
Step 2: Bring in dajac's changes and test ('jsoup-1.7.1' acts as commit message)
git pull https://github.com/dajac/snacktory.git jsoup-1.7.1