Skip to content

Instantly share code, notes, and snippets.

@elemoine
elemoine / index.html
Last active December 17, 2015 06:19
Example of an Angular directive for ol3.
<!DOCTYPE html>
<html ng-app='app'>
<head>
<meta charset=utf-8">
<link rel="stylesheet" href="http://ol3js.org/ol3/master/build/ol.css" type="text/css">
<style>
.map {
width: 600px;
@elemoine
elemoine / README.md
Last active January 5, 2018 06:52
OpenLayers 3 Google Maps API

Use OL3 and Google Maps together

This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.

Open the corresponding bl.ock to view the example in your browser.

Warning!

@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.

@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.

{
"attributes": {
"map": {
"dpi": 72,
"center": [
681185,
6412222
],
"projection": "EPSG:3857",
"scale": 10000,
#!/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.

Keybase proof

I hereby claim:

  • I am elemoine on github.
  • I am elemoine (https://keybase.io/elemoine) on keybase.
  • I have a public key whose fingerprint is F1AD 5DD0 D92F F17D 08A1 5E0B 2688 7FF0 E588 ECCD

To claim this, I am signing this object:

@elemoine
elemoine / heka-idle-packs.txt
Created April 4, 2016 18:28
Heka idle packs and diagnostics
2016/03/31 11:56:20 Diagnostics: 30 packs have been idle more than 120 seconds.
2016/03/31 11:56:20 Diagnostics: (inject) Plugin names and quantities found on idle packs:
2016/03/31 11:56:20 Diagnostics: influxdb_accumulator_filter: 30
2016/03/31 11:56:20
2016/03/31 11:56:20 Diagnostics: 32 packs have been idle more than 120 seconds.
2016/03/31 11:56:20 Diagnostics: (input) Plugin names and quantities found on idle packs:
2016/03/31 11:56:20 Diagnostics: elasticsearch_output: 32
2016/03/31 11:56:20 Diagnostics: http_metrics_filter: 32
2016/03/31 11:56:20
2016/03/31 11:56:23 Queue report initiated.
2016/04/08 21:24:36 Pre-loading: [keystone_7_0_decoder]
2016/04/08 21:24:36 Pre-loading: [elasticsearch_encoder]
2016/04/08 21:24:36 Pre-loading: [influxdb_encoder]
2016/04/08 21:24:36 Pre-loading: [http_metrics_filter]
2016/04/08 21:24:36 Pre-loading: [influxdb_accumulator_filter]
2016/04/08 21:24:36 Pre-loading: [keystone_7_0_logstreamer]
2016/04/08 21:24:36 Pre-loading: [elasticsearch_output]
2016/04/08 21:24:36 Pre-loading: [influxdb_output]
2016/04/08 21:24:36 Pre-loading: [openstack_splitter]
2016/04/08 21:24:36 Pre-loading: [NullSplitter]
@elemoine
elemoine / openstack-cheatsheet.txt
Last active September 28, 2017 21:25
OpenStack cheatsheet
keystone
--------
keystone tenant-list
openstack project list
keystone tenant-create --name <tenant-name> --description <tenant-desc> --enabled true
openstack project create <project-name> --description <project-desc> --enable
keystone user-create --name <user-name> --tenant <tenant-name> --pass <user-password> --email <user-email> --enabled true