View ckblock
if [ -d $HOME/.chef ]; then
cd $HOME/.chef
knife_target=$(readlink knife.rb)
current=$(basename -s .rb ${knife_target/knife-/})
echo -n $current
echo ""
View win_fetch_cacerts.rb
$ cat ../win_fetch_cacerts.rb
require 'net/http'
require 'openssl'
require 'fileutils'
cert_dir = '/C/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/ssl_certs/'
FileUtils.mkdir cert_dir unless
# create a path to the file "C:\RailsInstaller\cacert.pem"
View ubuntu 14.04->16.04

bleach command helps me clean up my left over vagrant stuff.

Yes, vagrant global-status is not hard. I just dont' like the output. I like the output of bleach

LICENSE: MIT AUTHOR: Dayne Broderson

View sage2

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
  • Launching a fullscreen iceweasle on the pi as pi using
View latest.js
$(document).ready(function() {
function latest()
url: "/latest_image"
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See
# See
xcode-select --install

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

chef client local mode install it and try it out:

View ahap_metadata_template.xml
<?xml version="1.0" encoding="UTF-8" ?>
<origin>University of Alaska Fairbanks, Geophysical Institute</origin>
View watana-extract-notes
# 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