Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Leith alexgleith

View GitHub Profile
View broken.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View africa_simple.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / s2.stac.odc.json
Last active May 12, 2020
A simple Sentinel-2 stac yaml json thing
View s2.stac.odc.json
{
"$schema": "https://schemas.opendatacube.org/dataset",
"id": "5490a901-6fbe-576d-b4b6-00f14c3788a3",
"crs": "epsg:32630",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
1190221.0,
@alexgleith
alexgleith / alex_oak.json
Last active Mar 5, 2020
The location of my tree. CC BY 4.0.
View alex_oak.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / wms_cfg.py
Created Aug 6, 2019
WMS config for the Open Data Cube OWS app
View wms_cfg.py
import re
# Static config for the wms metadata.
# pylint: skip-file
response_cfg = {
"Access-Control-Allow-Origin": "*", # CORS header
}
View Contributors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Index.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View vicmap_wms.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.dtd" >
<WMT_MS_Capabilities version="1.1.1">
<Service>
<Name>OGC:WMS</Name>
<Title>Web Map Service - GeoWebCache</Title>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://api.maps.vic.gov.au/vicmapapi/map/wms?SERVICE=WMS&amp;"/>
</Service>
<Capability>
<Request>
@alexgleith
alexgleith / start-ubuntu-16.04-docker.sh
Last active Feb 4, 2018
A gist that can be used to bootstrap a Ubuntu EC2 instance with Docker
View start-ubuntu-16.04-docker.sh
#!/bin/bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
usermod -aG docker ubuntu
apt-get install -y python3-pip
pip3 install docker-compose
@alexgleith
alexgleith / turf-line-split-test.geojson
Last active Oct 2, 2017
splitLine changing order of split features changes location of split
View turf-line-split-test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.