Skip to content

Instantly share code, notes, and snippets.

View evenevan's full-sized avatar

Evan F evenevan

  • Canada
  • 22:43 (UTC -07:00)
View GitHub Profile

csv to gpx using gpsbabbel

using this format https://www.gpsbabel.org/htmldoc-development/fmt_unicsv.html

in the universal csv format, we can use lat, long, alt, time, date, temp, speed

use below for the time and date fields. with the gpsbabbel gui, the utc offset can also be specified

iso8601

to get utc_d and utc_t, use `=TEXT(DATE(MID(A1,1,4),MID(A1,6,2),MID(A1,9,2)),"yyyy/mm/dd")

@evenevan
evenevan / osm-mbtiles.md
Last active July 12, 2024 00:32
osm mbtiles

get osm (open street map) data in .mbtiles form

get *.osm.pbf files from https://wiki.openstreetmap.org/wiki/Planet.osm#Worldwide_extract_sources. i used http://download.openstreetmap.fr/ as they have a nice extract of canada

tilemaker didn't work for me, the output didn't show many of the layers until i was zoomed in a lot

using planetiler in docker:

docker run -e JAVA_TOOL_OPTIONS="-Xmx5g" -v "$(PWD):/data" ghcr.io/onthegomap/planetiler:latest --osm-path=/data/canada-latest.osm.pbf --output=/data/canada-latest.mbtiles --download
@evenevan
evenevan / sentinel-2.md
Last active June 29, 2024 16:51
mostly a note for myself - getting sentinel-2 data
@evenevan
evenevan / nfc-contact.md
Created August 25, 2023 20:36
Share your contact information in a fun way with a NFC tag. Compatible with both Android and iOS.

Introduction

Share your contact information in a fun way with a NFC tag.

Compatibility

The resulting NFC tag is compatible with both iOS and Android, see the notes for additional information.

Guide

This process will probably take you about 5-10m to create a vCard, about 5-10m to host your .vcf file, and 5m to write the vCard to your NFC tag.

Prerequisites

@evenevan
evenevan / export-onenote-notebooks.md
Last active July 28, 2023 19:29
Export OneNote notebooks

Introduction

I want to keep my OneNote notebooks from work/school for future reference or whatever. This gist documents two methods that worked for me with their advantages and caveats.

Guide

Method 1

This is probably the easiest, but may take a while and involves downloading a bunch of large notebooks onto your device. For me, I ran into issues with one specific notebook as noted by Mark and Stryderis.

Prerequisites

You will need the Microsoft 365 version of OneNote on a desktop computer for this method. Make sure it isn't the OneNote for Windows 10 version.

@evenevan
evenevan / export-ms-teams-chats.md
Last active September 6, 2024 06:23
Export Microsoft Teams chats with a work or school account