Skip to content

Instantly share code, notes, and snippets.

View pataquets's full-sized avatar

Alfonso Montero López pataquets

View GitHub Profile
@pataquets
pataquets / osm-spain.sh
Last active August 29, 2015 14:06
BASH script to generate Navit-compatible map of Spain from OSM data
#!/bin/bash
# BASH script to generate Navit-compatible map of Spain from OSM data
# https://gist.github.com/pataquets/f8cf96d93d99e0fd7354#file-osm-spain-sh
rm -i navitmap.bin navitmap_001.bin spain.osm.bz2 spain.osm.pbf
#wget -c http://download.geofabrik.de/osm/europe/spain.osm.bz2 && bzcat spain.osm.bz2 | maptool navitmap.bin
#wget http://download.geofabrik.de/osm/europe/spain.osm.bz2 -O - | bunzip2 | maptool navitmap_001.bin
wget http://download.geofabrik.de/osm/europe/spain.osm.pbf -O - | maptool -P navitmap_001.bin
#wget http://download.geofabrik.de/osm/europe/spain.osm.pbf -O -\
@pataquets
pataquets / marp-cloudflare-pages.md
Last active March 13, 2023 22:01
How to deploy Marp presentations to Cloudflare Pages

Deploy to Cloudflare Pages

  • Go to "Pages" in the main left-hand menu.
  • Click "Create a project" button.
  • Select "Connect to Git" from the dropdown.
  • Select your Github or Gitlab repository and click "Begin setup" button.
  • On the build and deployment settings page, set the following values:
    • Framework preset: None
    • Build command: npm run deck
    • Build output directory: /public
  • Click the "Begin deploy" button.