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/sh | |
# | |
# install required packages | |
# | |
apt-get install apache2 git-core gitweb | |
# | |
# create folder to host the repositories | |
# |
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 | |
#------------------------------------------------------------------------------ | |
# SETTINGS | |
#------------------------------------------------------------------------------ | |
MYSQL_ROOT_PASSWORD=password | |
MYSQL_GITORIOUS_PASSWORD=password | |
GITORIOUS_HOST=gitorious | |
SYSADMIN=sysadmin |
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 object setup | |
// ---------------------------------------------------------------------------- | |
var page = new WebPage(); | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; |
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
(function($) { | |
$.postJSON = function(url, data, success, dataType) { | |
if (typeof data != 'string') { | |
data = JSON.stringify(data); | |
} | |
$.ajax({ | |
url : url, | |
type: "post", | |
data: data, | |
dataType: dataType || "json", |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'mongo' | |
require 'json/pure' | |
require 'optparse' | |
require 'highline/import' | |
# utility function to convert a BSON:OrderedHash to regular hash | |
class BSON::OrderedHash | |
def to_h |
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
def init = { servletContext -> | |
new Person(firstName: "John", lastName: "Doe").save(flush: true) | |
new Person(firstName: "Jane", lastName: "Smith").save(flush: true) | |
} |
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 | |
mkdir /home/gitorious/ | |
mkdir /home/gitorious/install/ | |
cd /home/gitorious/install | |
apt-get update | |
apt-get install vim build-essential zlib1g-dev libcurl4-openssl-dev apache2 mysql-server mysql-client apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev libmysqlclient-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev openjdk-6-jre sqlite3 libsqlite3-dev libmagick++3 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev | |
wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz | |
tar zxf ruby-enterprise-1.8.7-2011.03.tar.gz | |
ruby-enterprise-1.8.7-2011.03/installer | |
cd /opt && ln -s ruby-enterprise-1.8.7-2011.03/ ruby-enterprise |
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 grails.util.BuildScope | |
scriptScope = BuildScope.WAR | |
includeTargets << grailsScript("_GrailsWar") | |
includeTargets << grailsScript("_GrailsPackage") | |
target(prepareDistributionPackage: 'Creates a Zip archive for deployment') { | |
depends(checkVersion, configureWarName, war) |
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
class StylesTagLib { | |
static namespace = "g" | |
def stylesheet = { args, body -> | |
out << """<link rel="stylesheet" href="${resource(dir: 'css', file: args.href)}" type="text/css"/>""" | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Portalizer</title> | |
<style> | |
html, body { | |
margin: 0; padding: 0; | |
} |
OlderNewer