#!/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
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>