This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exiv2 Google Photo Sphere command file | |
# ------------------------- | |
# | |
# $ exiv2 -m photo-sphere.txt file ... | |
reg GPano http://ns.google.com/photos/1.0/panorama/ | |
set Xmp.GPano.UsePanoramaViewer XmpText True | |
set Xmp.GPano.ProjectionType XmpText equirectangular | |
set Xmp.GPano.CroppedAreaImageWidthPixels XmpText 4096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
-- | |
-- $Id: cleanGeometry.sql 2008-04-24 10:30Z Dr. Horst Duester $ | |
-- | |
-- cleanGeometry - remove self- and ring-selfintersections from | |
-- input Polygon geometries | |
-- http://www.kappasys.ch | |
-- Copyright 2008 Dr. Horst Duester | |
-- Version 1.0 | |
-- contact: horst dot duester at kappasys dot ch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert to NetCDF | |
img2grd grav.img.23.1 -Ggrav.nc -Rg | |
# Reencode since gdal didn't like NetCDF file | |
cdo -f nc4c -k lines copy grav.nc grav2.nc | |
# Create GeoTIFF | |
gdal_translate -a_srs EPSG:4326 grav2.nc grav.tif | |
# Reproject as EPSG:3857 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Converts between tms and xyz map tile structures | |
# October 2014, Matthew Petroff <http://mpetroff.net> | |
# Released into the public domain using the CC0 Public Domain Dedication | |
# See <http://creativecommons.org/publicdomain/zero/1.0/> | |
import os | |
import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Navbar Template for Bootstrap</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findSubarray(arr, subarr) { | |
for (var i = 0; i < 1 + (arr.length - subarr.length); i++) { | |
var j = 0; | |
for (; j < subarr.length; j++) | |
if (arr[i + j] !== subarr[j]) | |
break; | |
if (j == subarr.length) | |
return i; | |
} | |
return -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/fail2ban/jail.local | |
[jupyterhub] | |
enabled = true | |
port = 443 | |
filter = jupyterhub | |
backend = systemd | |
maxretry = 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Decodes encrypted configuration file for Ricoh Theta desktop application. | |
I'm not sure what the point of double AES encryption is when the key is | |
embedded right in the executable. | |
Requires pycryto | |
Matthew Petroff <https://mpetroff.net/>, 2016 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>NEAREST interpolation test</title> | |
<link rel="stylesheet" href="pannellum.css"/> | |
<script type="text/javascript" src="pannellum.js"></script> | |
<style> | |
html, body, #panorama { | |
height: 100%; |
OlderNewer