View gina-git_cleanup.sh
#!/usr/bin/env bash
# Usage: gina git_cleanup
# Summary: Detect and delete git branches that are merged and can be removed.
# This must be run from master
starting_branch=`git branch | grep ^\* | awk "{ print \$2 }"`
git checkout master
if [[ $? -ne 0 ]]; then
echo "git checkout master failed - bailing out before doing any further activities"
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>