I hereby claim:
- I am jspiewak on github.
- I am jspiewak (https://keybase.io/jspiewak) on keybase.
- I have a public key ASC7e60AeN5dM_u7Uf37VbHuQfzmPwZovmbf8nlWwzw_9go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
volids=( $(aws ec2 describe-volumes --output text --filters "Name=attachment.status,Values=attached" --query 'Volumes[?!not_null(Tags[?Key == `rs:project`].Value)] | [].[VolumeId]') ) | |
for volid in ${volids[@]}; do | |
echo "Getting instance for volume ${volid}" | |
instanceid=$(aws ec2 describe-volumes --output text --volume-ids ${volid} --query 'Volumes[].Attachments[].InstanceId') | |
echo "Getting rs:* tags for instance ${instanceid}" | |
tags=$(aws ec2 describe-instances --instance-ids ${instanceid} --query 'Reservations[].Instances[].Tags[?starts_with(Key, `rs:`)][]') | |
if [ "${tags}" != "" ]; then |
- Create a new profile, e.g. Man Page Viewer | |
- Set the command to `bash -c "echo $$HOST$$ | sed -E 's/(.*)\/(.*)/\1 \2/' | xargs man"` | |
- Select x-man-page from the "Schemes handled" drop down |
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
require 'time' | |
class PivotalTracker | |
attr_accessor :token, :project | |
def initialize(args) | |
@token = args[0] |
export GRAILS_VERSION="$(ls -lhr $HOME/.grails | egrep -i '1\.' | head -1 | awk '{print $9 }')" | |
sed_option="-E" | |
[ "$(uname)" == "Linux" ] && sed_option="-r" | |
_get_domain_classes(){ | |
find ./grails-app/domain -iname *.groovy 2> /dev/null | tr \\n ' ' | sed 's/\.groovy//g' | sed 's/\.\/grails-app\/domain\///g' | tr '/' \. | |
} |
set dest to choose folder | |
tell application "iTunes" | |
set the_tracks to tracks of playlist "Audi Q5 MMI" | |
repeat with t in the_tracks | |
set ll to get location of t | |
set a to album artist of t | |
if length of a = 0 then |
(function() { | |
var id = 0; | |
function generateId() { return id++; }; | |
Object.prototype.id = function() { | |
var newId = generateId(); | |
this.id = function() { return newId; }; |
package com.yammer.dropwizard; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.LoggerContext; | |
import ch.qos.logback.classic.jmx.JMXConfigurator; | |
import ch.qos.logback.classic.jmx.MBeanUtil; | |
import com.yammer.dropwizard.lifecycle.Managed; | |
import org.slf4j.LoggerFactory; | |
import javax.management.MBeanServer; |