This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# resolve links - $0 may be a softlink | |
PRG="$0" | |
while [ -h "$PRG" ]; do | |
ls=`ls -ld "$PRG"` | |
link=`expr "$ls" : '.*-> \(.*\)$'` | |
if expr "$link" : '/.*' > /dev/null; then | |
PRG="$link" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
should = require 'should' | |
restify = require 'restify' | |
util = require 'util' | |
Browser = require 'zombie' | |
querys = require 'querystring' | |
OAuthClient = require './oauth-client' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: | |
- openjdk7 | |
- oraclejdk7 | |
before_install: | |
- sudo add-apt-repository -y ppa:groovy-dev/grails | |
- sudo apt-get update | |
- sudo apt-get -y install grails-ppa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check our Java env | |
if which java | |
then | |
JAVA_CMD="`which java`" | |
else | |
JAVA_HOME=${JAVA_HOME:?JAVA_HOME is not set} | |
JAVA_CMD="$JAVA_HOME/bin/java" | |
fi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> | |
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d [%thread] %level %logger - %m%n</pattern> | |
</encoder> | |
</appender> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define :default_resolver, | |
:remote_base => "", | |
:tomcat_service => "", | |
:tomcat_group => "", | |
:artifact_dir => "", | |
:artifact_file => "", | |
:app_group_id => "", | |
:app_artifact_id => "", | |
:app_version => "", | |
:app_type => "war", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.stats() | |
{ | |
"db" : "sites-api", | |
"collections" : 4, | |
"objects" : 47, | |
"avgObjSize" : 528.6808510638298, | |
"dataSize" : 24848, | |
"storageSize" : 84480, | |
"numExtents" : 5, | |
"indexes" : 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Vagrant::Config.run do |config| | |
# Web App Servers | |
config.vm.define :app do |app_config| | |
app_config.vm.box = "centos-6" | |
app_config.vm.network :hostonly, "33.33.33.30" | |
app_config.vm.share_folder("tomcat-gz-path", "/tmp/archive/tomcat", "../../archives/tomcat") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = some dude | |
email = [email protected] | |
signingkey = CAFE | |
[merge] | |
keepBackup = false | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.newrelic.api.agent.NewRelic | |
import collection.mutable.{HashMap, SynchronizedMap} | |
import com.yammer.metrics.{Timer, MetricsGroup} | |
trait Measurable { | |
protected lazy val metricsGroup = new MetricsGroup(this.getClass) | |
private val timers = new HashMap[String, Timer] with SynchronizedMap[String, Timer] |