Skip to content

Instantly share code, notes, and snippets.

@karussell
karussell / customizable-routing.ipynb
Last active Jul 28, 2020
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
View customizable-routing.ipynb
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 Jul 25, 2020
hetzner pricing for 256GB RAM servers and beyond
View price.md
name CPU 256GB-price max GB max-price price/1GB CPU Benchmark
SB (auction) Xeon® E5-1650 v3 Hexa-Core ~100€ 256 ~100€ 0.31-0.43 13531
AX161 EPYC™ 7502P 32-Core Zen2 167.00€ 512 263€ 0.514-0.652 27437
PX92 Xeon® W-2145 Octa-Core 174.93€ 256 174€ 0.683 19707
DX152 2*Xeon® SP Silver 10-Core 267.96€ 768 492€ 0.640-1.074 19256
DX292 2*Xeon® SP Gold 16-Core 338.00€ 768 702€ 0.91-3.97 26585
SX292 Xeon® E5-1650 v3 Hexa-Core 308.21€ 256 308€ 1.204 13531

Prices including VAT.

@karussell
karussell / install-android-sdk-linux.txt
Last active May 31, 2019
Install Android SDK for graphhopper/android
View install-android-sdk-linux.txt
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
View preview-git-pull-request.txt
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
@karussell
karussell / install-elasticsearch-debian
Last active Jun 24, 2016
setup ElasticSearch on EC2
View install-elasticsearch-debian
sudo apt-get update
sudo apt-get install openjdk-6-jdk
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.deb
sudo dpkg -i elasticsearch-0.19.8.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
# if you want to remove it:
sudo dpkg -r elasticsearch
You can’t perform that action at this time.