Skip to content

Instantly share code, notes, and snippets.


Francesco Bartoli francbartoli

View GitHub Profile
TylerWanner /
Last active Apr 9, 2022
Terraform Deploy Prefect Server to GCP

Provisioning Prefect Server on GCP using Terraform

Requirements: Terraform, GCP credentials with permission to create a project Tested with: Terraform v0.12.23, google cloud provider v3.26

To run:

You can use an environment variable to set which service account key to use during provisioning export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key The service account you use must belong to a GCP project that has the necessary APIs enabled (such as billing and resource manager)--if it does not, you may have to enable these APIs manually along the way in those projects In this directory, run terraform init then terraform apply -- you will need to provide a billing_id and organization_id for your GCP project

Once successful, be sure to add the following to your ~/.prefect/config.toml

tomkralidis /
Last active Aug 3, 2020
Metadata records TinyDB experiment


This gist demonstrates creating a document store of OGC API - Records records using TinyDB as a backend.


pip3 install lxml owslib tinydb
python3 msc-wis-dcpc-discovery-metadata.xml
t-book / Apache:GeoNode SSL-TLS LE Authority
Last active May 7, 2019
Add let´s enrypt to geonode
View Apache:GeoNode SSL-TLS LE Authority
# - Close port 8080 for inbound networking
# - Edit your local_settings to use proxy /geonode (and not port 8080)
# - Add following to local_settings: AVATAR_GRAVATAR_SSL = True
# - make sure mod_ssl is active: $ a2enmod ssl
# add let´s encrypt repository
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
# install certbot
dedsm /
Last active Aug 2, 2021
WeRiot Django Timescale integration
import logging
from django.contrib.gis.db.backends.postgis.base import \
DatabaseWrapper as PostgisDBWrapper
from django.db import ProgrammingError
from .schema import TimescaleSchemaEditor
logger = logging.getLogger(__name__)
sgillies / advanced_rasterio_features.ipynb
Last active Dec 30, 2021
Advanced Rasterio features notebook
View advanced_rasterio_features.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
francbartoli /
Created Nov 24, 2017 — forked from arbennett/
Workflow for uploading data from netcdf to google earth engine
#!/usr/bin/env python2
Script that allows for conversion of a netcdf file to
a stack of geotiff files with each raster being a time
slice from the input file.
Base implementation taken from:
lukas-h /
Last active May 23, 2022
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.


  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

maxogden /
Last active Jan 21, 2022
How-to: Write a node module with voxel.js

Writing node modules with voxel.js

This is a short guide that will teach you the workflows that have been figured out by the voxel.js community for writing node modules + sharing them on NPM and Github. It is assumed that you have a basic understanding of JavaScript, github and the command line (if not you can check out an introduction to git and the command line or learn JS basics from JavaScript for Cats)

The voxel-tower repository on github contains all the example code from this guide.

Table of contents

isao / funcsimple.js
Created Dec 4, 2012
minimal cli func test with shelljs
View funcsimple.js
#!/usr/bin/env node
var assert = require('assert'),
shell = require('shelljs'),
path = require('path'),
BASEDIR = path.resolve(__dirname, '../') + '/',
NEWSAPP = BASEDIR + 'examples/newsboxes/';
glenrobertson / TileLayer.GeoJSON.js
Created Sep 15, 2012
GeoJSON Leaflet Tile Layer
View TileLayer.GeoJSON.js
GeoJSON layer with mouse hover events to properties for each feature
Requires JQuery to handle the AJAX requests
Currently only supports FeatureCollections
Features must have ID's, so they can be deduplicated across tiles (not rendered twice).
Control that shows HTML content for a point on hover