Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# https://gist.github.com/elemoine/27748e205d36a9006190
# Install packages.
sudo apt-get install kvm cloud-utils
# Download an Ubuntu cloud image.
wget http://cloud-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img -O disk.img.dist
# Create user-data file for devstack.
{
"attributes": {
"map": {
"dpi": 72,
"center": [
681185,
6412222
],
"projection": "EPSG:3857",
"scale": 10000,
@elemoine
elemoine / README.md
Created October 8, 2014 12:08
OpenLayers 3 – clip layer with geometry

OpenLayers 3 – clip layer with geometry

This gist shows how to clip a layer with a geometry, i.e. a shape with geographical coordinates.

@elemoine
elemoine / README.md
Last active August 29, 2015 14:07
OpenLayers 3 – create a mask on shift-drag

This gist shows how to create a mask on the map using shift-drag. This is in response to a question on the ol3-dev mailing list.