Skip to content

Instantly share code, notes, and snippets.

View hallahan's full-sized avatar

Nick Hallahan hallahan

View GitHub Profile
@hallahan
hallahan / metro_regions_v7.geojson
Created August 2, 2022 16:44
metro_regions_v7.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hallahan
hallahan / ca-counties.geojson
Created August 31, 2017 16:26
California Counties
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hallahan
hallahan / Solution.java
Created August 1, 2017 20:58
Simple QuadTree
import java.util.ArrayList;
import java.util.List;
/*
* N
* W E
* S
*/
import java.util.ArrayList;
import java.util.List;
/*
* N
* W E
* S
*/
class Node {
ERROR xmlParser.cpp:18: OSM XML parse error description: Start-end tags mismatch
ERROR xmlParser.cpp:19: OSM XML parse error offset: 151551
ERROR xmlParser.cpp:20: OSM XML parse error XML: <?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.4.3 (7414 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="38.6490530" minlon="-121.3659670" maxlat="38.6511980" maxlon="-121.3632200"/>
<node id="90326792" visible="true" version="2" changeset="3095405" timestamp="2009-11-12T04:05:33Z" user="woodpeck_fixbot" uid="147510" lat="38.6503380" lon="-121.3655220"/>
<node id="90326795" visible="true" version="2" changeset="3384284" timestamp="2009-12-16T03:34:37Z" user="woodpeck_fixbot" uid="147510" lat="38.6503230" lon="-121.3640690"/>
<node id="90326797" visible="true" version="3" changeset="11814043" timestamp="2012-06-06T09:38:48Z" user="Acizza" uid=
@hallahan
hallahan / backup-and-restore-instructions.md
Created February 3, 2016 21:32
Backup and Restore a Linux Installation on NUC

Fresh Ubuntu Server Install

Created a tar.gz inside when booted up into a USB Xubuntu.

sudo tar -cvpzf fresh-ubuntu-server.tar.gz --one-file-system /media/xubuntu/cea0fa37-84bc-4edb-8ce1-0fac03b717db/

To restore the system to this archive, you want to reformat the system partition. Unmount the /media. Figure out which /dev/sda* is the system partition:

sudo parted /dev/sda print
[
{
"name":"Arcade Creek",
"files":[
"http://localhost:3210/public/deployments/Arcade%20Creek/.DS_Store",
"http://localhost:3210/public/deployments/Arcade%20Creek/arcade-creek-hot.mbtiles",
"http://localhost:3210/public/deployments/Arcade%20Creek/arcade-creek-hot21.mbtiles",
"http://localhost:3210/public/deployments/Arcade%20Creek/arcade-creek-sat.mbtiles",
"http://localhost:3210/public/deployments/Arcade%20Creek/arcade-creek-sat21.mbtiles",
"http://localhost:3210/public/deployments/Arcade%20Creek/arcade.osm",
@hallahan
hallahan / load_spatialite.sql
Created October 23, 2015 13:42
Dynamically Loading Spatialite in SQL
SELECT load_extension('/usr/local/lib/mod_spatialite.dylib');
@hallahan
hallahan / extents.geojson
Created October 2, 2015 20:09
Country Extents
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.