Skip to content

Instantly share code, notes, and snippets.

View lostdesign's full-sized avatar
🔥
working on leitstelle.io

wellá lostdesign

🔥
working on leitstelle.io
View GitHub Profile
@lostdesign
lostdesign / command.txt
Created August 24, 2023 11:34
Planetiler Data
java -Xmx175g \
`# return unused heap memory to the OS` \
-XX:MaxHeapFreeRatio=40 \
-jar planetiler.jar \
`# Download the latest planet.osm.pbf from s3://osm-pds bucket` \
--area=planet --bounds=planet --download \
`# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
--download-threads=10 --download-chunk-size-mb=1000 \
`# Also download name translations from wikidata` \
--fetch-wikidata \
@lostdesign
lostdesign / combine_mbtiles.py
Created November 27, 2022 08:27 — forked from ache051/combine_mbtiles.py
Combine MBTiles
#-------------------------------------------------------------------------------
# Name: combine_mbtiles.py
# Purpose: Processes multiple sqlite .mbtiles files into single file (or by level? or by degree grids?)
#
# Author: joshn. Modified by ache015
#
# Created: 18/11/2014
#
# Last Modified: 10/11/2018
#-------------------------------------------------------------------------------
@lostdesign
lostdesign / fathom.client.js
Last active March 19, 2022 16:59
This is a quick snippet to embed fathom into a nuxt3 site.
/**
* Add this as plugins/fathom.client.js and
* you are good to go - nothing else tod o.
*/
import * as fathom from 'fathom-client'
export default defineNuxtPlugin(nuxtApp => {
fathom.load('YOUR-SITE-ID', {
spa: 'history'
@lostdesign
lostdesign / how-to-update-docker-image.sh
Created September 8, 2020 06:39
Release a new Dockerfile
# Build and tag locally
docker build -t user/image:version .
# Login to docker hub
docker login
# Push new build image to hub
docker push -t user/image:version
@lostdesign
lostdesign / Dockerfile
Last active January 15, 2024 03:06
Run your Laravel project using Docker
FROM php:7.4-fpm
RUN apt-get update && apt-get install -qy --no-install-recommends \
curl \
openssl \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmagickwand-dev \
libmcrypt-dev \
libgmp-dev\
@lostdesign
lostdesign / Guestbook.md
Created July 10, 2020 09:24
My Guestbook

Hello World!