View ckblock
#!/bin/bash
if [ -d $HOME/.chef ]; then
cd $HOME/.chef
knife_target=$(readlink knife.rb)
current=$(basename -s .rb ${knife_target/knife-/})
echo -n $current
else
echo ""
fi
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/curl.haxx.se'
FileUtils.mkdir cert_dir unless File.directory?(cert_dir)
# create a path to the file "C:\RailsInstaller\cacert.pem"
View ubuntu 14.04->16.04 upgrade.md
View Bleach-README.md

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 broderson@gmail.com

View sage2 notes.md

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
View latest.js
$(document).ready(function() {
alert("load!");
latest();
})
function latest()
{
alert("testing");
$.ajax({
url: "/latest_image"
View deepdream-install.md
#!/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
View README.md

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:

View ahap_metadata_template.xml
<?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>
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