Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
@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 / 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 / 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''.
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 / 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
@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 / 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 / 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 / latest.js
Last active September 12, 2016 00:35
$(document).ready(function() {
alert("load!");
latest();
})
function latest()
{
alert("testing");
$.ajax({
url: "/latest_image"
@dayne
dayne / sage2 notes.md
Last active January 4, 2021 16:33
sage2 helper stuff for pi

few random help scripts I'm using while I play with sage2 on my raspberry pi.

This is meant to go with my sage-cookbook and my own pis.

Capturing here incase others wander into this stuff and want to try it out.

To test this all out and just putter around with sage on my pi from my desktop I'm doing the following:

  • Launchinging tmux session with sage2 server using sage2tmux.sh
  • Launching a fullscreen iceweasle on the pi as pi using weblauncher.sh