This file contains 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 | |
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Ubuntu 11.10 Oneiric Ocelot | |
# Forked from https://gist.github.com/1287170 | |
# Modified to use NGinx + uwsgi instead of Apache, as well as memcached and supervisord, incorporating ideas from | |
# http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html |
This file contains 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
@(page:Int, pageLength:Int, collectionLength:Int, route:Int => Call, bound:Int = 5) | |
@lowbound() = @{ | |
((page.toDouble / bound).floor * bound) toInt | |
} | |
@highbound() = @{ | |
if ((lowbound() + bound) * pageLength >= collectionLength) | |
collectionLength / pageLength + 1 | |
else | |
lowbound() + bound | |
} |
This file contains 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
package controllers; | |
import com.ning.billing.recurly.model.Subscription; | |
import com.ning.billing.recurly.model.push.Notification; | |
import com.ning.billing.recurly.model.push.account.BillingInfoUpdatedNotification; | |
import com.ning.billing.recurly.model.push.account.CanceledAccountNotification; | |
import com.ning.billing.recurly.model.push.account.NewAccountNotification; | |
import com.ning.billing.recurly.model.push.payment.*; | |
import com.ning.billing.recurly.model.push.subscription.*; | |
import play.Logger; |
This file contains 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
<?php | |
require_once __DIR__ . '/../lib/vendor/Silex/silex.phar'; | |
$app = new Silex\Application(); | |
$app['debug'] = true; | |
// Registering Symfony\Yaml and Symfony\Config | |
$app['autoloader']->registerNamespace('Symfony', __DIR__.'/../lib/vendor/symfony/src'); |
This file contains 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: objective-c | |
before_script: | |
- ./scripts/travis/add-key.sh | |
after_script: | |
- ./scripts/travis/remove-key.sh | |
after_success: | |
- ./scripts/travis/testflight.sh | |
env: | |
global: |
This file contains 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: scala # to trigger the build on JVM worker ('language: java' works the same) | |
env: | |
- PLAY_VERSION=2.1-RC2 # Latest 2.1.x | |
before_script: | |
- wget http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip | |
- unzip -q play-${PLAY_VERSION}.zip | |
script: play-${PLAY_VERSION}/play test | |
notifications: | |
# Email notifications are disabled to not annoy anybody. | |
# See http://about.travis-ci.org/docs/user/build-configuration/ to learn more |
This file contains 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
machine: | |
timezone: | |
UTC | |
environment: | |
PLAY_VERSION: 2.1.2 | |
PLAY_HOME: play-$PLAY_VERSION | |
dependencies: | |
pre: | |
- if [[ ! -e $PLAY_HOME ]]; then curl -k -L -o $PLAY_HOME.zip http://downloads.typesafe.com/play/$PLAY_VERSION/play-$PLAY_VERSION.zip && unzip -q $PLAY_HOME.zip; fi |
This file contains 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 sbt._ | |
import Keys._ | |
import play.Project._ | |
import com.typesafe.sbt.S3Plugin._ | |
import S3._ | |
object ApplicationBuild extends Build { | |
val appName = "sample" | |
val appVersion = "1.0-SNAPSHOT" |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:AuthorizeSecurityGroupEgress", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:CreateImage", | |
"ec2:CreateKeyPair", | |
"ec2:CreateSecurityGroup", |
This file contains 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
NORMAL=$(tput sgr0) | |
GREEN=$(tput setaf 2; tput bold) | |
YELLOW=$(tput setaf 3) | |
RED=$(tput setaf 1) | |
function red() { | |
echo -e "$RED$*$NORMAL" | |
} | |
function green() { |
OlderNewer