I hereby claim:
- I am daveadams on github.
- I am daveadams (https://keybase.io/daveadams) on keybase.
- I have a public key whose fingerprint is 137C C203 79F2 E5F8 280F 3194 D93A 7D85 B902 603D
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# | |
# disk-report.rb | |
# Reports disk usage broken down by category for all sites in a Sakai instance. | |
# | |
# Written by David Adams (daveadams@gmail.com) | |
# | |
# This software is licensed to the Public Domain; No Rights Reserved | |
# |
#!/usr/bin/env ruby | |
# | |
# binary-resource-report.rb | |
# Reports disk usage broken down by properties in the binary_entity field. | |
# | |
# WARNING: takes a long time to run | |
# (~5 hours for 10,000,000 records) | |
# | |
# Written by David Adams (daveadams@gmail.com) | |
# |
-- convert-longs-to-lobs.sql | |
-- Scan for and convert LONG and LONG RAW fields in a Sakai database | |
-- See https://jira.sakaiproject.org/browse/SAK-7977 | |
-- | |
-- Created 2013-03-29 daveadams@gmail.com | |
-- | |
-- USAGE: | |
-- To scan for LONG and LONG RAW fields, but make no changes: | |
-- $ sqlplus -S dbuser/dbpass@dbsid @convert-longs-to-lobs.sql | |
-- |
description "Consul Agent" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on stopping network-services | |
respawn | |
console none | |
setuid consul |
# consul defaults | |
CONSUL_CONF_DIR=/etc/consul.d | |
node_name=`curl -s 169.254.169.254/latest/meta-data/instance-id` | |
first_mac=`curl -s 169.254.169.254/latest/meta-data/network/interfaces/macs/ |head -n 1` | |
vpc_id=`curl -s 169.254.169.254/latest/meta-data/network/interfaces/macs/${first_mac}vpc-id` | |
case "$vpc_id" in | |
vpc-00000000) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo "Failure mode test suite for bash" | |
echo " running bash $BASH_VERSION" | |
try() { | |
trap 'echo FAILS' EXIT | |
case $1 in | |
simple) | |
printf " %-34s" "simple failed command" |
#!/bin/bash | |
# via: http://askubuntu.com/a/421028 | |
# original: https://bugs.launchpad.net/upstart/+bug/406397/comments/47 | |
# usage: sh /tmp/upstart_fix.sh <pid> | |
sleep 0.001 & | |
firstPID=$! | |
#first lets exhaust the space |
# upstart config for consul-replicate | |
# run this on each consul server. "consul lock" will ensure only one is operating per datacenter | |
# | |
description "Consul Replicate" | |
start on started consul | |
stop on stopping network-services | |
respawn |
#!/usr/bin/env ruby | |
require 'diplomat' | |
def die(msg) | |
STDERR.puts "ERROR: #{msg}" | |
exit 1 | |
end | |
def print_usage |