Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
@dayne
dayne / deepdream-install.md
Last active September 11, 2016 05:44 — forked from robertsdionne/deepdream-install.md
Deepdream installation
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
@dayne
dayne / README.md
Last active June 26, 2021 01:50
Cowsay Fortunes

Chef essentials training result

... a cowsay fortune tool

installing (on your chef essentials vm)

curl the silly moo.rb recipe file

curl -o moo.rb https://gist.githubusercontent.com/dayne/3869744e305531fc878d/raw/moo.rb

chef client local mode install it and try it out:

@dayne
dayne / ahap_metadata_template.xml
Created July 27, 2015 18:41
GI/ASF AHAP metadata template
<?xml version="1.0" encoding="UTF-8" ?>
<metadata>
<idinfo>
<citation>
<citeinfo>
<origin>University of Alaska Fairbanks, Geophysical Institute</origin>
<pubdate>UPDATE</pubdate>
<title>UPDATE</title>
@dayne
dayne / watana-extract-notes
Last active August 29, 2015 14:23
watana extract
# Found some old notes (2012) of the steps I used to create some contour lines
# derived from the SDMI IFSAR DEM
####
# clipping out
gdal_translate -co TILED=YES -co COMPRESS=LZW -a_nodata -99999 -projwin 252983.504358 1469878.71763 340772.495973 1421881.9325 -of GTiff ../SDMI.IFSAR.2010.FUGRO/dirty-org/DSM.vrt SDMI-IFSAR-2010-DSM-watana_extract.tif
add_overviews.rb SDMI-IFSAR-2010-DSM-watana_extract.tif
gdal_translate -co TILED=YES -co COMPRESS=LZW -a_nodata -99999 -projwin 252983.504358 1469878.71763 340772.495973 1421881.9325 -of GTiff ../SDMI.IFSAR.2010.FUGRO/dirty-org/DTM.vrt SDMI-IFSAR-2010-DTM-watana_extract.tif
add_overviews.rb SDMI-IFSAR-2010-DTM-watana_extract.tif
gdal_translate -b 4 /mnt/gis/scratch/dbroders/nrt_river_aerial/download/Chena_4_15_15v3.tif Chena_4_15_15v3.mask.tif
gdal_translate -co TILED=YES -co COMPRESS=DEFLATE -b 1 -b 2 -b 3 /mnt/gis/scratch/dbroders/nrt_river_aerial/download/Chena_4_15_15v3.tif Chena_4_15_15v3.rgb.tif
/home/dbroders/processing-utils/bin/masker Chena_4_15_15v3.rgb.tif Chena_4_15_15v3.mask.tif Chena_4_15_15v3.mask.rgb.tif
add_overviews.rb Chena_4_15_15v3.mask.rgb.tif
gdal_translate -co TILED=YES -co COMPRESS=JPEG -co COPY_SRC_OVERVIEWS=YES -co PHOTOMETRIC=YCBCR -co JPEG_QUALITY=90 Chena_4_15_15v3.mask.rgb.tif Chena_4_15_15v3-jpg.tif
@dayne
dayne / 0.DTN Width Script
Last active August 29, 2015 14:18
Decision Theature North - width of screens fun
See the picture and more details about this on my Google+ post over at:
https://plus.google.com/+DayneBroderson/posts/V21SUJhgEGB
The real room is a width 21' 5 3/4''.
@dayne
dayne / Setup of SimSalmon.md
Last active August 29, 2015 14:15
SimSalmon 2015.02

Download and extract latest OSX build - built by Melo

I set up two Rift compatible builds set just outside of Lower Russian Lake. One build is x64 bit and the other was called universal in the build settings. - Melo

mkdir SimSalmon-2015.02
cd SimSalmon-2015.02
wget https://www.northwestknowledge.net/miles/VTLBuildShare/Lower%20Russian%20Demo%20Mac%20Builds.7z
7z e Lower\ Russian\ Demo\ Mac\ Builds.7z 
@dayne
dayne / 1.users_workflow.rb
Last active August 29, 2015 14:11
support
# future
if workstation.broken? then call_for_help
# current -- simplified version - just think if we checked and wrote
# out workflow based on the user.workstation type: windows, linux, osx, other
if user.workstation.broken?
if user.institute = GI
then call_for_help("crc")
else
@dayne
dayne / west_fairbanks_below_540.json
Created October 25, 2014 23:21
west_fairbanks_below_540
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dayne
dayne / .vimrc
Last active December 19, 2015 23:09
.vimrc
syntax on
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set background=dark
set t_Co=256 " 256 colors
"show the line numbers on the side. allow for lots of lines"