Skip to content

Instantly share code, notes, and snippets.

View mejackreed's full-sized avatar
🐧

Jack Reed mejackreed

🐧
View GitHub Profile
@mejackreed
mejackreed / installation.markdown
Last active January 22, 2016 01:25
Creating the geoblacklight-ubuntu32 box

Procedural steps to generating and creating a Vagrant box used in the GeoBlacklight Workshop.

  1. Download Ubuntu 14.04 32-bit server from http://releases.ubuntu.com/14.04/ubuntu-14.04-server-i386.iso
  2. Download and install VirtualBox 4.3.20 https://www.virtualbox.org/wiki/Downloads
  3. Download and install Vagrant https://www.vagrantup.com/downloads.html
  4. Follow "Build a box" tutorial to create a virtual machine Install the following:
@mejackreed
mejackreed / geoblacklight-documents.json
Last active August 12, 2017 22:40
GeoBlacklight Seed Documents
[
{
"geoblacklight_version": "1.0",
"dc_description_s": "Panel title. Depths shown by isolines. \"Geological map [copyright] NERC 1996.\" Also available on flat sheet. \"Sheet 1\"--on panel. Includes text, notes, organizations' logos, and ancillary map of \"Orogenic terranes of Britain, Ireland and surrounding seas.\"",
"dc_format_s": "Paper",
"dc_identifier_s": "urn:arrowsmith.mit.edu:MIT.001145244",
"dc_language_s": "English",
"dc_publisher_s": "British Geological Survey",
"dc_rights_s": "Public",
"dc_title_s": "1:1 500 000 series [cartographic material] : tectonic map of Britain, Ireland and adjacent areas / British Geological Survey ; Geological Survey of Ireland ; Geological Survey of Northern Ireland.",
@mejackreed
mejackreed / Welcome.md
Last active August 29, 2015 14:15
GeoBlacklight Workshop

Welcome

WiFi

Network name: "PSAV Meeting Room"

Password: osu2015

Workshop URL: http://geoblacklight.org ... Click on "Tutorials" ... Click on "A hands on introduction to GeoBlacklight - Code4Lib 2015 Workshop"

@mejackreed
mejackreed / schema.xml
Created February 23, 2015 23:55
Solr 4.10.3 default configs
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@mejackreed
mejackreed / index.html
Created March 17, 2015 19:00
EarthWorks Schema.org Microdata
<dl class="dl-horizontal">
<dt class="blacklight-dc_creator_sm">Author(s)</dt>
<dd class="blacklight-dc_creator_sm"><span itemprop="author">Circuit Rider Productions</span></dd>
<dt class="blacklight-dc_description_s">Description</dt>
<dd class="blacklight-dc_description_s"><span itemprop="description"><div class="truncate-abstract">This layer shows the areas of the USGS 1:100,000 quadrangle boundary maps that are within the watershed boundaries of the Russian River basin.This shapefile contains the boundaries of the 100k quadrangles of California to be used for geographic reference.</div></span></dd>
<dt class="blacklight-dc_publisher_s">Publisher</dt>
<dd class="blacklight-dc_publisher_s"><span itemprop="publisher">Circuit Rider Productions</span></dd>
<dt class="blacklight-dct_spatial_sm">Place(s)</dt>
<dd class="blacklight-dct_spatial_sm"><span itemprop="spatial"><a href="/?f%5Bdct_spatial_sm%5D%5B%5D=Russian+River+Watershed+%28Calif.%29"><sp
@mejackreed
mejackreed / wx587tc1912_to_html.html
Last active August 29, 2015 14:18
ISO and FGDC to html
<html xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Airports: Tuxtla Gutierrez, Mexico, 2010 (ISO 19139)</title>
<link href="xsl/metadata.css" rel="stylesheet" type="text/css">
</head>
<body class="bodyText">
<h1 class="toolbarTitle">Airports: Tuxtla Gutierrez, Mexico, 2010 (ISO 19139)</h1>
<hr>
@mejackreed
mejackreed / iso2html.xsl
Last active August 29, 2015 14:18
Markup of Kim's iso2html
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gts="http://www.isotc211.org/2005/gts"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:gml="http://www.opengis.net/gml"
exclude-result-prefixes="gmd gco gml srv xlink gts">
@mejackreed
mejackreed / allCountries_formatting
Last active December 24, 2016 17:05
Cleaning up GeoNames for Solr
# Reduce the columns
cut -f1-2,5-6 allCountries.txt > allCountries_red.txt
# Add a header row
sed '1s/^/id title_s lat lng\
/g' allCountries_red.txt > allCountries_head.txt
# Add wkt requires csvpys https://github.com/cypreess/csvkit/blob/master/docs/scripts/csvpys.rst
csvpys --tab -s wkt_rpt "'POINT(' + ch['lng'] + ' ' + ch['lat'] + ')'" allCountries_head.txt > allCountries_wkt.txt
@mejackreed
mejackreed / setup.md
Created June 5, 2015 16:11
GeoBlacklight Workshop Setup Instructions

1 . Using the provided VirtualBox virtual machine (using Vagrant) System Requirements: 1. Install VirtualBox 4.3.20 Download for: Windows, OS X, Linux 2. Install Vagrant 2. Setting the application up locally (recommended only for OS X and Linux users) System Requirements: 1. Install Ruby (2.1.6 or 2.2.2 recommended) 2. Install Rails (> 4.2 ) 3. Install Git 4. Install Java (check here to see if your system has Java installed)

WiFi

Network name: "HYATT-MEETING"

Password: INDIANA15

Workshop URL: http://geoblacklight.org ... Click on "Tutorials" ... Click on "A hands on introduction to GeoBlacklight - Code4Lib 2015 Workshop"

Make sure to copy "geoblacklight_workshop" from provided thumb drive to your local computer