Skip to content

Instantly share code, notes, and snippets.

View awaxa's full-sized avatar

Greg Kitson awaxa

View GitHub Profile
@awaxa
awaxa / -
Created September 1, 2014 13:24
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I/private/tmp/shitlib/.bundle/gems/rspec-core-3.0.4/lib:/private/tmp/shitlib/.bundle/gems/rspec-support-3.0.4/lib -S /private/tmp/shitlib/.bundle/gems/rspec-core-3.0.4/exe/rspec ./spec/shitlib_spec.rb
Shitlib
has a version number
does something useful (FAILED - 1)
Failures:
1) Shitlib does something useful
Failure/Error: expect(false).to eq(true)
# Description:
# A port of http://motivate.im/
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:

Hubot Diabetes

A diabetes script package for Hubot

Build Status

Installation

Run npm install --save hubot-diabetes

#!/usr/bin/env sh
set -e
tmpfile='/tmp/softwareupdate-list'
[ -f $tmpfile ] || softwareupdate --list 2>&1 | tee $tmpfile
if grep -q '\[recommended\]' $tmpfile ; then
sudo softwareupdate --install --recommended
@awaxa
awaxa / puppet.sh
Last active August 29, 2015 14:06
#!/usr/bin/env sh
set -e
srcdir=/usr/src/puppet
controldir=$HOME/src/control
sudo mkdir -p $srcdir
sudo chown $USER $srcdir
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "puppetlabs/centos-6.5-64-nocm"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
@awaxa
awaxa / load
Last active August 29, 2015 14:06
# Copyright (c) 2014 Greg Kitson https://github.com/awaxa
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@awaxa
awaxa / -
Created September 5, 2014 23:42
commit 977070885f7eec10487256006e2bc1c9684faad8
Author: Greg Kitson <greg.kitson@gmail.com>
Date: Fri Sep 5 06:36:00 2014 -0700
add envpuppet to /etc/profile
diff --git a/modules/people/manifests/awaxa/puppet.pp b/modules/people/manifests/awaxa/puppet.pp
index 7bbbcb3..ae9e925 100644
--- a/modules/people/manifests/awaxa/puppet.pp
+++ b/modules/people/manifests/awaxa/puppet.pp
#!/bin/sh
puppet='puppet-3.4.3'
facter='facter-1.7.5'
hiera='hiera-1.3.2'
cache='/vagrant/dmg'
source='http://downloads.puppetlabs.com/mac'
set -ex
#!/bin/sh
# https://gist.githubusercontent.com/octocat/0831f3fbd83ac4d46451/raw/git-author-rewrite.sh
git filter-branch --env-filter '
OLD_EMAIL="awaxa@awaxa.com"
CORRECT_NAME="Greg Kitson"
CORRECT_EMAIL="greg.kitson@gmail.com"
export GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]