Skip to content

Instantly share code, notes, and snippets.

@wknowles
wknowles / leaflet-boilerplate.html
Last active December 9, 2015 20:02
boilerplate for quick and dirty leaflet mapping
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0"/>
<title>Leaflet template</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
@wknowles
wknowles / gdal_commands
Last active October 27, 2015 14:12
commands for a gdal workflow - in progress
gdal_merge.py -init "255" -o combined.asc *
gdal_translate “-a_srs EPSG:4326” -co COMPRESS=LZW -stats combined.asc combined.tif
gdal_translate -co COMPRESS=LZW -stats combined.asc combined.tif
gdaldem hillshade -compute_edges -co compress=lzw combined.tif hillshade.tif
—--
@wknowles
wknowles / .bash_profile
Last active July 1, 2016 07:09 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@wknowles
wknowles / first_steps
Last active August 29, 2015 14:28
My First Steps on VPS
##
#FIRST STEPS ON A VPS (A PERSONAL SETUP)
##
#Log in
ssh root@"serverip" -p "ssh port"
#Update all packages
apt-get update; apt-get upgrade