Skip to content

Instantly share code, notes, and snippets.

View kitplummer's full-sized avatar
🏠
Working from home

Kit Plummer kitplummer

🏠
Working from home
View GitHub Profile
@kitplummer
kitplummer / gist:003b54a64dcdcc675bc3
Created December 11, 2015 16:57
kong-dashboard's NodeJS dependency tree
/usr/local/lib
└─┬ kong-dashboard@1.0.1
├─┬ bower@1.6.9
│ ├── abbrev@1.0.7
│ ├─┬ bower-config@1.2.3
│ │ ├── graceful-fs@4.1.2
│ │ ├─┬ optimist@0.6.1
│ │ │ └── wordwrap@0.0.3
│ │ └─┬ osenv@0.1.3
│ │ ├── os-homedir@1.0.1
@kitplummer
kitplummer / Vagrantfile
Last active December 11, 2015 05:28
Vagrantfile for OMAR box
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "CentOS6_64"
config.vm.customize ["modifyvm", :id, "--memory", 2048]
# The url from where the 'config.vm.box' box will be fetched if it
@kitplummer
kitplummer / gh_ark.rb
Created January 9, 2013 17:53
Fetch from githubarchive.org and drop into MongoDB...
require 'open-uri'
require 'zlib'
require 'yajl'
require 'mongo'
require 'date'
require 'iconv'
include Mongo
@client = MongoClient.new('localhost', 27017)
@kitplummer
kitplummer / geowave-emr-launch.sh
Created November 18, 2015 15:19
geowave-emr-launch.sh
# https://blogs.aws.amazon.com/bigdata/post/Tx15973X6QHUM43/Running-Apache-Accumulo-on-Amazon-EMR
aws emr create-cluster --name GeoWaveCluster --no-auto-terminate --bootstrap-actions Path=s3://elasticmapreduce.bootstrapactions/accumulo/1.6.1/install-accumulo_mj,Name=Install_Accumulo Path=s3://rbt-emrbootstrap/install-geowave,Name=Install_GeoWave Path=s3://rbt-emrbootstrap/initialize-geowave.sh,Name=Init_GeoWave Path=s3://support.elasticmapreduce/spark/install-spark,Name=Install_Spark --ami-version 3.6.0 --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge --ec2-attributes KeyName=sparkcluster,InstanceProfile=SparkRole --service-role EMR_DefaultRole
* Trying 192.168.99.100...
* Connected to 192.168.99.100 (192.168.99.100) port 32770 (#0)
* Server auth using Basic with user 'admin'
> GET /go/api/agents HTTP/1.1
> Host: 192.168.99.100:32770
> Authorization: Basic YWRtaW46Zm9vYmFyOTk=
> User-Agent: curl/7.43.0
> Accept: application/vnd.go.cd.v1+json
>
* Empty reply from server
@kitplummer
kitplummer / initialisation.sh
Created November 30, 2012 17:29
Initialize in EC2
#!/usr/bin/ruby
require 'rubygems'
require 'fog'
# Import EC2 credentials e.g. @aws_access_key_id and @aws_access_key_id
require './config.rb'
# Set up a connection
connection = Fog::Compute.new(
:provider => 'AWS',
:region => 'us-east-1',
@kitplummer
kitplummer / temp.c
Created November 14, 2012 03:39
tmp102 from Pi.
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@kitplummer
kitplummer / wfs.xml
Created October 2, 2012 02:46
WFS from OMAR
<?xml version='1.0' encoding='utf-8'?>
<wfs:FeatureCollection xmlns:omar='http://omar.ossim.org' xmlns:wfs='http://www.opengis.net/wfs' xmlns='http://www.opengis.net/wfs' xmlns:gml='http://www.opengis.net/gml'>
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
<gml:featureMember>
<omar:raster_entry fid='raster_entry.1'>
<omar:id>1</omar:id>
<omar:version>1</omar:version>
<omar:access_date />
elevation_manager.elevation_source2.type: dted_directory
elevation_manager.elevation_source2.connection_string: /Volumes/Iomega_HDD/data/elevation/dted/1k
elevation_manager.elevation_source2.min_open_cells: 500
elevation_manager.elevation_source2.max_open_cells: 1000
elevation_manager.elevation_source2.memory_map_cells: true
epsg_database_file1: $(OSSIM_DEV_HOME)/ossim/share/ossim/ossim_epsg_projections-v7_4.csv
epsg_database_file2: $(OSSIM_DEV_HOME)/ossim/share/ossim/ossim_harn_state_plane_epsg.csv
epsg_database_file3: $(OSSIM_DEV_HOME)/ossim/share/ossim/ossim_state_plane_spcs.csv
epsg_database_file4: $(OSSIM_DEV_HOME)/ossim/share/ossim/ossim_harn_state_plane_esri.csv
Scanning dependencies of target ossim_plugin
[ 82%] Building CXX object ossim_plugins/ossim/CMakeFiles/ossim_plugin.dir/ossimTerraSarTiffReader.cpp.o
In file included from /home/omar/projects/ossim_plugins/ossim/ossimTerraSarTiffReader.cpp:14:
/home/omar/projects/ossim_plugins/ossim/ossimTerraSarTiffReader.h:16:47: error: ossim/imaging/ossimTiffTileSource.h: No such file or directory
/home/omar/projects/ossim_plugins/ossim/ossimTerraSarTiffReader.h:17:38: error: ossim/base/ossimFilename.h: No such file or directory
In file included from /home/omar/projects/ossim_plugins/ossim/ossimTerraSarTiffReader.cpp:15:
/home/omar/projects/ossim_plugins/ossim/ossimTerraSarProductDoc.h:20:39: error: ossim/base/ossimConstants.h: No such file or directory
/home/omar/projects/ossim_plugins/ossim/ossimTerraSarProductDoc.h:21:36: error: ossim/base/ossimRefPtr.h: No such file or directory
In file included from /home/omar/projects/ossim_plugins/ossim/ossimTerraSarModel.h:16,
from /home/omar/projects/ossim_plugins