Skip to content

Instantly share code, notes, and snippets.

View natebenes's full-sized avatar

Nate Benes natebenes

View GitHub Profile
@pdbartsch
pdbartsch / index.md
Last active September 28, 2023 06:07
Locate, download and process Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs

Locate, download and process Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs

Start here

The following steps can get tedious. You're going to need to want it. Get in the mood by viewing some timelapse imagery.

Locate data for download

AWS gererously hosts Landsat imagery. This imagery can be easily searched and downloaded through Development Seed's Libra tool (You'll need to register for a free USGS account). It can be useful to see path & row graphically, so download shapefile or kml from here.

Naming

LXSPPPRRRYYYYDDDGSIVV ##L``X``S``PPP``RRR``YYYY``DDD``G``S``I``VV

@pdbartsch
pdbartsch / process_landsat.sh
Last active March 23, 2017 20:13 — forked from andymason/Landsat 8 gdal processing
Landsat 8 gdal processing
#! /bin/bash
# Forked from: Andy Mason https://gist.github.com/andymason/6780828
# Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs.
#
# Requirements:
# * gdal http://www.mapbox.com/tilemill/docs/guides/gdal/
# * convert (image-magick)
# * dans-gdal-scripts https://github.com/gina-alaska/dans-gdal-scripts
@allisonmorgan
allisonmorgan / main.go
Last active September 8, 2015 20:20
Anomalyzer Example from CSV
package main
import (
"encoding/csv"
"log"
"os"
"strconv"
"github.com/lytics/anomalyzer"
)
IKESA: Cookies: Initiator 0x7a9cff970df16c49 Responder 0x5f717e0f18d3d7f5
IKESA: The local host is the responder.
IKESA: ISAKMP version 1.0; main mode (identity protect) exchange
IKESA: Current state is ACTIVE
IKESA: Dead Peer Detection (RFC 3706) enabled
XFORM: Authentication method: <unknown 0>
XFORM: Encryption alg: <none>; Authentication alg: <none>
XFORM: Oakley Group: <unavailable>
XFORM: Phase 2 PFS is not used
anonymous
anonymous / cartodb.yaml
Created November 16, 2015 22:49
This is a Tangram scene, made with Tangram Play. It uses CartoDB data exported as GeoJSON vector tiles.[This is a Tangram scene, made with Tangram Play.]
cameras:
perspective:
type: perspective
vanishing_point: [0, -500]
lights:
directional1:
type: directional
direction: [.1, .5, -1]
diffuse: .7
ambient: .5
@tinkerware
tinkerware / hsdis-elcapitan.sh
Last active July 19, 2020 15:38
Build hsdis for JDK 1.8u92 on El Capitan
# You will need Mercurial; get it with `brew install hg`.
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u
cd jdk8u
hg update jdk8u92-b14
chmod +x ./get_source.sh; ./get_source.sh
cd hotspot/src/share/tools/hsdis
wget http://ftp.heanet.ie/mirrors/gnu/binutils/binutils-2.26.tar.gz
tar -xzf binutils-2.26.tar.gz
make BINUTILS=binutils-2.26 ARCH=amd64
@sumeetjain
sumeetjain / digital_ocean_excellent_support.md
Last active June 17, 2016 04:22
After sharing the chat history of my support request at Digital Ocean on Twitter, two of their team members got in touch to set things right.

After making this tweet yesterday, Digital Ocean got in touch with me to explain what might have gone wrong. Two members responded: Zach Bouzan-Kaloustian and Tyler Crandall. Both of them sent thoughtful and thorough replies and apologized for the poor experience I'd had up to that point.

When I posted to Twitter yesterday, my goal was to learn what I had done wrong so I could properly teach students how to use Digital Ocean in the future. Turns out there was just a bug in their system related to some code that had just been deployed, and it raised abuse flags for users who signed up during a short window. They've, of course, fixed the bug and are going to make improvements to their support procedures to hopefully avoid situations like mine from yesterday.

Zach's email to me is pasted below, for the curious. But before you get to that, let me very clear: **Bugs happen. That includes behavioral bugs, like momentary lapses in support quality. Fro