Let's say you want to host domains first.com and second.com.
Create folders for their files:
| # Bounding box from http://norbertrenner.de/osm/bbox.html | |
| HELSINKI_BBOX=24.577,60.079,25.228,60.335 | |
| # OpenStreetMap extract file from Geofabrik | |
| wget https://download.geofabrik.de/europe/finland-latest.osm.pbf | |
| # Cut the 500 MB Finland data file into a 34 MB Helsinki data file | |
| # as this is much faster than using the import bbox. | |
| osmconvert finland-latest.osm.pbf -b="$HELSINKI_BBOX" --out-pbf >helsinki.pbf |
| **Interesting/widely used implementations of pathfinding algorithms. | |
| ========================================================================== | |
| A* Ruby https://github.com/georgian-se/shortest-path | |
| A* (bidirectional with shortcuts) C++ https://github.com/valhalla/valhalla | |
| A* Unity https://arongranberg.com/astar/front | |
| NBA* JS https://github.com/anvaka/ngraph.path | |
| NBA* Java https://github.com/coderodde/GraphSearchPal | |
| NBA* Java https://github.com/coderodde/FunkyPathfinding | |
| NBA* (Parallel) C++ https://github.com/janhsimon/PNBAStar |
| SELECT table, | |
| formatReadableSize(sum(bytes)) as size, | |
| min(min_date) as min_date, | |
| max(max_date) as max_date | |
| FROM system.parts | |
| WHERE active | |
| GROUP BY table |
| #!/bin/bash | |
| OUTDIR=. | |
| while read -r db ; do | |
| while read -r table ; do | |
| if [ "$db" == "system" ]; then | |
| echo "skip system db" | |
| continue 2; |
| #!/usr/bin/env bash | |
| set -e | |
| CONTEXT="$1" | |
| if [[ -z ${CONTEXT} ]]; then | |
| echo "Usage: $0 KUBE-CONTEXT" | |
| exit 1 | |
| fi |
| [package] | |
| name = "rust-async-qotd" | |
| version = "0.1.0" | |
| authors = ["Gökberk Yaltıraklı <webdosusb@gmail.com>"] | |
| [dependencies] | |
| tokio = { git = "https://github.com/tokio-rs/tokio" } | |
| rand = "0.3" |
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
This is an example of a socket-activated per-connection service (which is usually referred to as inetd-like service). A thorough explanation can be found at http://0pointer.de/blog/projects/inetd.html.
The key point here is to specify Accept=yes, which will make the socket accept connections (behaving like inetd) and pass
only the resulting connection socket to the service handler.