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
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
php5-dev \ | |
php5-cli \ | |
php5-fpm \ | |
php5-json \ | |
php5-intl \ |
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
<script> Sfdump = window.Sfdump || (function (doc) { var refStyle = doc.createElement('style'), rxEsc = /([.*+?^${}()|\[\]\/\\])/g, idRx = /\bsf-dump-\d+-ref[012]\w+\b/; doc.documentElement.firstChild.appendChild(refStyle); function toggle(a) { var s = a.nextSibling || {}; if ('sf-dump-compact' == s.className) { a.lastChild.innerHTML = '▼'; s.className = 'sf-dump-expanded'; } else if ('sf-dump-expanded' == s.className) { a.lastChild.innerHTML = '▶'; s.className = 'sf-dump-compact'; } else { return false; } return true; }; return function (root) { root = doc.getElementById(root); function a(e, f) { root.addEventListener(e, function (e) { if ('A' == e.target.tagName) { f(e.target, e); } else if ('A' == e.target.parentNode.tagName) { f(e.target.parentNode, e); } }); }; root.addEventListener('mouseover', function (e) { if ('' != refStyle.innerHTML) { refStyle.innerHTML = ''; } }); a('mouseover', function (a) { if (a = idRx.exec(a.className)) { refStyle.innerHTML = 'pre.sf-dump .'+a[0]+'{background-col |
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
/* | |
* this uses jquery UI/Effects/switchClass with transitions | |
* parameters are: | |
* normal: starter class | |
* pump: class to transform to | |
* interval: time interval | |
* stop: if the object hast this stopper class it will break, | |
* you can set the class from the outside | |
* | |
* usage: $('.status').pump({normal : 'someclass', |
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 | |
# | |
# A hook script that is called after a successful | |
# merge is made. | |
# It triggers the boilerplate build. | |
# | |
# To enable this hook, make this file executable | |
# change to build dir | |
cd ../../build |
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
<target name="copyViews"> | |
<echo message="copy Views for build"/> | |
<mkdir dir="${dir.intermediate}/${dir.views}"/> | |
<copy todir="${dir.intermediate}/${dir.views}" includeEmptyDirs="true"> | |
<fileset dir="${dir.views}/" excludes="${file.default.exclude}, ${file.exclude}"> | |
</fileset> | |
</copy> | |
<mkdir dir="${dir.publish}/${dir.views}"/> | |
<copy todir="${dir.publish}/${dir.views}" includeEmptyDirs="true"> | |
<fileset dir="${dir.views}/" excludes="${file.default.exclude}, ${file.exclude}"> |
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
# install silverstripe + common modules from github | |
# usage sh install_silverstripe.sh <folder_name> <tag/branch> | |
# examples: | |
# sh install_silverstripe.sh some_folder tags/2.4.5 | |
# sh install_silverstripe.sh some_folder master | |
#set up project base folder | |
git clone git@github.com:silverstripe/silverstripe-installer.git $1 | |
cd $1 | |
git checkout $2 |
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__ . '/../vendor/silex/silex.phar'; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
$app = new Silex\Application(); |
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
# install silverstripe + common modules from github | |
# usage sh install_silverstripe.sh <folder_name> <tag/branch> | |
# examples: | |
# sh install_silverstripe.sh some_folder tags/2.4.5 | |
# sh install_silverstripe.sh some_folder master | |
#set up project base folder | |
git clone git@github.com:silverstripe/silverstripe-installer.git $1 | |
cd $1 | |
git checkout $2 |
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
public function registerContainerConfiguration(LoaderInterface $loader) { | |
if ($this->getEnvironment() == 'dev') { | |
$extrafiles = array( | |
__DIR__ . '/config/config_local.yml', | |
); | |
foreach ($extrafiles as $filename) { | |
if (file_exists($filename) && is_readable($filename)) { | |
$loader->load($filename); | |
} |
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 | |
/** | |
* Tweaked Symfony2 bootstrap file | |
*/ | |
// if you don't want to setup permissions the proper way, just uncomment the following PHP line | |
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | |
umask(0000); | |
if ( file_exists( dirname(__FILE__).'/../.env.php' ) ){ |
OlderNewer