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 | |
function twitter_card_info() | |
{ | |
$twitter_excerpt = get_the_excerpt(); | |
if (!$twitter_excerpt) $twitter_excerpt = get_bloginfo('description'); | |
// .. | |
echo '<meta name="twitter:description" value="'.$twitter_excerpt.'" />'; | |
} | |
add_action('wp_head','twitter_card_info'); | |
?> |
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 echo phpinfo(); ?> |
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
cd /opt/hudson/jobs | |
git clone git://github.com/sebastianbergmann/php-hudson-template.git |
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
mkdir -p /opt/hudson/{logs,tmp,war} | |
cd /opt/hudson | |
chmod 777 {logs,tmp} | |
wget http://hudson-ci.org/latest/hudson.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
PIDFILE=/opt/hudson/cc.pid | |
HUDSON_HOME=/opt/hudson/ | |
COMMAND=/usr/bin/java | |
ARGUMENTS="-Djava.io.tmpdir=/opt/hudson/tmp -jar /opt/hudson/hudson.war --webroot=/opt/hudson/war --httpPort=8082" ajp13ListenAddress=127.0.0.1" | |
RUN_AS=hudson-ci | |
NAME=Hudson-CI | |
start() { | |
ebegin "Starting $NAME" | |
export HUDSON_HOME=/opt/hudson |
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 | |
/** | |
* BarfooArticle form. | |
* | |
* @package integration | |
* @subpackage form | |
* @author caefer <caefer@ical.ly> | |
* @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ | |
*/ |
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
BarfooArticle: | |
actAs: | |
Sluggable: ~ | |
columns: | |
title: string(64) | |
text: string(512) | |
topImage: string(64) | |
centerImage: string(64) |
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 symfony doctrine:build --all --and-load --no-confirmation | |
php symfony doctrine:generate-admin --quiet backend BarfooArticle |
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
sf_image: | |
class: sfImageTransformRoute | |
url: /thumbnails/:type/:attribute/:format/:slug-:id.:sf_format | |
param: { module: sfImageTransformator, action: index } | |
requirements: | |
format: '[\w_-]+' | |
attribute: 'topImage|centerImage' | |
slug: '[\w_-]+' | |
id: '\d+(?:,\d+)?' | |
sf_format: 'gif|png|jpg' |
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 BarfooArticleForm extends BaseBarfooArticleForm | |
{ | |
public function configure() | |
{ | |
$file_src = sfContext::getInstance()->getController()->genUrl(array( | |
'sf_route' => 'sf_image', | |
'format' => 'backend_edit', | |
'type' => 'BarfooArticle', | |
'attribute' => 'topImage', | |
'slug' => $this->getObject()->slug, |
OlderNewer