I hereby claim:
- I am ryantenney on github.
- I am ryantenney (https://keybase.io/ryantenney) on keybase.
- I have a public key whose fingerprint is 4C49 E201 CA40 5846 7A42 D947 7863 C523 4D13 335B
To claim this, I am signing this object:
package com.enernoc.cost.common.util.concurrent; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.AbstractQueue; | |
import java.util.Collection; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.LinkedList; |
package com.enernoc.cost.common.util.concurrent; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.FutureTask; | |
import java.util.concurrent.LinkedBlockingQueue; | |
import java.util.concurrent.RejectedExecutionHandler; | |
import java.util.concurrent.RunnableFuture; | |
import java.util.concurrent.Semaphore; |
jar=$1 | |
propertiesFile=`tar -tvf $jar | grep pom.properties | awk ' { print $9 } '` | |
properties=`tar -xf $jar -O $propertiesFile` | |
groupId=`echo "$properties" | grep groupId | awk -F'=' ' { print $2 }'` | |
artifactId=`echo "$properties" | grep artifactId | awk -F'=' ' { print $2 }'` | |
jar=$artifactId.jar | |
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \ |
@Bean | |
@Role(BeanDefinition.ROLE_INFRASTRUCTURE) | |
public ZooKeeperAnnotationBeanPostProcessor zooKeeperAnnotationBeanPostProcessor() { | |
ZooKeeperAnnotationBeanPostProcessor proc = new ZooKeeperAnnotationBeanPostProcessor(); | |
proc.setCuratorFramework(curatorFramework()); | |
return proc; | |
} | |
@Bean | |
@Role(BeanDefinition.ROLE_INFRASTRUCTURE) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo "Nuking all .DS_Store files" | |
find . -type f -name ".DS_Store" -exec rm {} \; |
#!/bin/bash | |
####################################### | |
# Graphite Install | |
# Run with sudo for best results | |
# | |
####################################### | |
if [[ "$(/usr/bin/whoami)" != "root" ]]; then | |
echo "This script must be run as root or using sudo.Script aborted." | |
exit 1 |
#include <OneWire.h> | |
#include <SoftwareSerial.h> | |
float temp = -1; | |
float setTemp = 38; | |
boolean compressor = false; | |
boolean compressorDelayed = false; | |
float compressorOffTime = 0; // compressor should be off initially | |
const int compressorDelay = 300; // 5 minutes |
Jenkins.instance.items.each { job -> | |
println job.name; | |
job.builds.each { build -> | |
if (build.result == Result.ABORTED) { | |
println "\t${build.number} ${build.result}: deleting" | |
build.delete() | |
} | |
} | |
} |
# Derived from: http://digitalflapjack.com/blog/2012/may/09/buildnumbers/ | |
# Assumes that you tag versions with the version number (e.g., "1.1") and then the build number is | |
# that plus the number of commits since the tag (e.g., "1.1.17") | |
echo "Updating version/build number from git..." | |
plist=${PROJECT_DIR}/${INFOPLIST_FILE} | |
desc=`git describe` | |
commits=`echo $desc | awk '{split($0,a,"-"); print a[2]}'` |