Skip to content

Instantly share code, notes, and snippets.

@d3netxer
d3netxer / geonode-slds
Last active May 19, 2016 19:16
geonode-slds
- Log into GeoNode as Admin
- In the menu, click on GeoServer and open a new tab
- In the GeoServer data menu, click on 'styles'
@d3netxer
d3netxer / daadab_dollo_ado_camps.md
Last active July 13, 2016 14:56
Time-based OverPass query on Daadab and Dollo Ado Refugee Camps
<!--how to embed a gifv! -->
<video autoplay loop poster="http://i.imgur.com/xIlXXEg.jpg" id="backgroundgif" width="500" height="300">
<source src="http://i.imgur.com/xIlXXEg.webm" type="video/webm">
<source src="http://i.imgur.com/xIlXXEg.mp4" type="video/mp4">
</video>
@d3netxer
d3netxer / index.html
Last active March 1, 2017 15:25 — forked from d3noob/index.html
Leaflet.draw plugin with options set.
<!DOCTYPE html>
<html>
<head>
<title>Leaflet.draw Plugin</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
<link
@d3netxer
d3netxer / jquery_listener_tip.md
Last active April 14, 2017 17:20
jquery tip: attach listener to body tag

jquery tip: attach listener to body tag

$("body").on("click", "a", function(event) {
... your custom code
.... this attaches the listener to the body, but will match against any click from an <a> tag.
.... so you don't have to attach to every a tag every time, but can use only 1 listener
... also good, because you can attach the listener to a parent element and not have to update the listners whenever a new <a> tag is created
});
@d3netxer
d3netxer / geonode_csw_calls.md
Created May 5, 2017 16:55
GeoNode CSW calls
@d3netxer
d3netxer / switch-local-git-repo-to-fork.md
Created December 7, 2017 17:15 — forked from jpierson/switch-local-git-repo-to-fork.md
How to move to a fork after cloning

If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.

To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.

  1. Clone some repo (you've probably already done this step)

    git clone git@github...some-repo.git

Installing QGIS Server on Ubuntu 16.04

sudo apt-get update

edited the /etc/apt/sources.list file and added:

deb https://qgis.org/debian xenial main deb-src https://qgis.org/debian xenial main

(I don't think this step is needed: sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable)