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
java -jar -Dhudson.util.ProcessTreeKiller.disable=true hudson.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
NAME=projectname | |
PORT=port | |
ENVIRONMENT=staging | |
URI=$NAME.$ENVIRONMENT | |
DIRECTORY=/mnt/apps/$ENVIRONMENT/$NAME | |
case "$1" in | |
start) | |
lsof -i :$PORT | |
if [ $? -eq 0 ]; then |
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
<target name="staging.deploy"> | |
<echo message="Stopping the server"/> | |
<exec executable="${staging.directory}/etc/init.d/${staging.startstop}" dir="${staging.directory}"> | |
<arg line="stop"/> | |
</exec> | |
<echo message="Cleaning the environment"/> | |
<exec executable="grails"> | |
<env key="JAVA_HOME" value="/usr/lib/jvm/java-6-sun/"/> | |
<arg line="clean"/> | |
</exec> |
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
module LearnBoost mongoose | |
module christkv node-mongodb-native 78a96e85963f4869a4440355b5bbfb93c8d449a6 | |
mv modules/node-mongodb-native modules/mongoose/lib/support/ |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('./../../lib/express'), | |
form = require('./../../support/connect-form'), | |
sys = require('sys'); | |
var app = express.createServer( |
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
{ error: null | |
, ended: false | |
, maxFieldsSize: 2097152 | |
, keepExtensions: true | |
, uploadDir: '/tmp' | |
, encoding: 'utf-8' | |
, headers: | |
{ host: 'localhost:3000' | |
, connection: 'keep-alive' | |
, referer: 'http://localhost:3000/' |
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
{ error: null | |
, ended: false | |
, maxFieldsSize: 2097152 | |
, keepExtensions: true | |
, uploadDir: '/tmp' | |
, encoding: 'utf-8' | |
, headers: | |
{ host: 'localhost:3000' | |
, 'user-agent': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' | |
, accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' |
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
var connection = http.createClient(80, 'content.guardianapis.com'); | |
var request = connection.request('GET', q.uri, {'host':'content.guardianapis.com'}); | |
request.end(); | |
request.on('response', function(response){ | |
var apiData = ""; | |
response.setEncoding('utf8'); | |
response.on('data', function(chunk){ | |
apiData += chunk; | |
}); | |
response.on('end', function(){ |
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
class HttpMethod | |
object HttpPostMethod extends HttpMethod { override def toString = "POST" } | |
object HttpGetMethod extends HttpMethod { override def toString = "GET" } | |
object HttpDeleteMethod extends HttpMethod { override def toString = "DELETE" } | |
object HttpPutMethod extends HttpMethod { override def toString = "PUT" } | |
abstract class Param(){ | |
val name: String | |
val description: String |
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
module Foo | |
def say | |
'foo' | |
end | |
end | |
module Bar | |
def say | |
'bar' | |
end |
OlderNewer