Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruce Schubert emxsys

View GitHub Profile
@emxsys
emxsys / northern-horizon-mapserver-01.md
Last active Sep 27, 2021
Northern Horizon MapServer Configuration
View northern-horizon-mapserver-01.md

Northern Horizon Map Server

  • Host: DigitalOcean
  • Team: Emxsys
  • Project: Northern Horizon Servers
  • Server: mapserver.northernhorizon.org
  • IP Address: 157.245.134.29

The Northern Horizon map server is virtual machine hosted on DigitalOcean that provides web map services (WMS) and web map tile services (WMTS) to Northern Academy projects and the WorldWind Explorer. The map server is

@emxsys
emxsys / raspberry_pi_script_as_service.md
Last active May 21, 2022
How to run a python script as a service in Raspberry Pi - Raspbian Jessie
View raspberry_pi_script_as_service.md

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script

View DDS_Enabled_GDAL.md
@emxsys
emxsys / feature_server.md
Last active Apr 17, 2019
How to setup a NASA feature server for place names
View feature_server.md

How to setup a NASA WorldWind feature server (WFS)

Ubuntu 18.04.4 LTS Initial Setup

Change root password

Changing password for root.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 
@emxsys
emxsys / cleancache.sh
Last active Feb 27, 2022
Clean an Apache disk cache using a regex with htcacheclean
View cleancache.sh
#!/usr/bin/env bash
# A best practices Bash script template with many useful functions. This file
# combines the source.sh & script.sh files into a single script. If you want
# your script to be entirely self-contained then this should be what you want!
# A better class of script...
set -o errexit # Exit on most errors (see the manual)
set -o errtrace # Make sure any error trap is inherited
set -o nounset # Disallow expansion of unset variables
View template.sh
#!/usr/bin/env bash
# A best practices Bash script template with many useful functions. This file
# combines the source.sh & script.sh files into a single script. If you want
# your script to be entirely self-contained then this should be what you want!
# A better class of script...
set -o errexit # Exit on most errors (see the manual)
set -o errtrace # Make sure any error trap is inherited
set -o nounset # Disallow expansion of unset variables
@emxsys
emxsys / http-get-dos.conf
Created Mar 21, 2019 — forked from SamStudio8/http-get-dos.conf
Simple fail2ban DOS jail
View http-get-dos.conf
# Fail2Ban configuration file
#
# NOTE
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives.
#
# Author: http://www.go2linux.org
# Modified by: samnicholls.net
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly
[Definition]
@emxsys
emxsys / elevation_server.md
Last active Jun 7, 2019
How to setup a NASA WorldWind elevation server
View elevation_server.md

How to setup a NASA WorldWind elevation server

Introduction

This guide shows how to create a WMS server on a local VM using Apache, MapServer and elevation data sets curated by NASA. This WMS server serves as a model for a production MapServer instance to be deployed on an a network.

The guide contains a brief overview of how the WorldWind clients make requests, followed by instructions for setting up the Apache web server, MapServer and the Apache caching.

@emxsys
emxsys / imagery_server.md
Last active Apr 5, 2019
How to setup a NASA imagery server
View imagery_server.md

How to setup a NASA WorldWind imagery server

Introduction

This guide shows how to create a WMS server using Apache, MapServer and imagery data sets curated by NASA. This WMS server serves as a model for a production MapServer instance to be deployed on an a network.

The guide contains a brief overview of how the WorldWind clients make requests, followed by instructions for setting up the Apache web server, MapServer and the Apache caching.

Overview

WorldWind clients consume imagery data in PNG, JPEG and DDS formats obtained from a MapServer instance via OGC WMS requests. The NASA WorldWind imagery server provides Blue Marble and Landsat7 imagery to WorldWind clients as the core imagery services

View worldwindjava-netbeans.md

Run Selected File

You must add worldwind.jar to the classpaths in WorldWindJava\nbproject\ide-file-targets.xml

<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="WorldWindJava-IDE">
    <!-- TODO: edit the following target according to your needs -->
    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
    <target name="run-selected-file-in-src">
 Must set property 'run.class'