#Mac OS X
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
#adaptive images lib for TYPO3 | |
lib.adaptive-images = COA | |
lib.adaptive-images { | |
1 = TEXT | |
1.value = <figure class="csc-textpic-imagecolumn###CLASSES###"><noscript | |
10 = IMG_RESOURCE | |
10 { | |
file.import.current = 1 | |
file.maxW = 480 | |
file.override.data = {$styles.content.imgtext.maxW} |
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
SQL: | |
images int(11) unsigned DEFAULT '0', | |
======================================================= | |
TCA | |
.... | |
'images' => array( | |
'exclude' => 0, | |
'label' => 'images', | |
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | |
'images', |
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/env ruby | |
submods = Hash.new | |
%x{git config -f .gitmodules --get-regexp '^submodule\..*\.(path|url)$'}.lines.each do |l| | |
submodule, key, value = l.match(/^submodule\.(.*)\.(path|url)\s+(.*)$/)[1..3] | |
submods[submodule] = Hash.new unless submods[submodule].is_a?(Hash) | |
submods[submodule][key] = value | |
end |
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
require 'formula' | |
class Fontforge < Formula | |
url 'http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2' | |
head 'git://fontforge.git.sourceforge.net/gitroot/fontforge/fontforge' | |
homepage 'http://fontforge.sourceforge.net' | |
md5 '5be4dda345b5d73a27cc399df96e463a' | |
depends_on 'pkg-config' => :build | |
depends_on 'gettext' |
This gist assumes:
- you have a local git repo
- with an online remote repository (github / bitbucket etc)
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by apache
- apache's home directory is /var/www/
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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 | |
/** | |
* @test | |
*/ | |
public function renderSetsControllerActionInformationOnRequestObjectIfThePluginHasNoNode() { | |
$plugin = $this->getAccessibleMock('TYPO3\TYPO3\TypoScript\Plugin', array('getPluginNamespace')); | |
$plugin->expects($this->any())->method('getPluginNamespace')->will($this->returnValue('typo3_plugin_namespace')); | |
$plugin->setRenderingContext($this->mockRenderingContext); | |
$plugin->_set('subRequestBuilder', $this->mockSubRequestBuilder); |
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
# Users need to be able to clear the cache in most cases | |
options.clearCache.pages = 1 | |
options.clearCache.all = 1 | |
# I've never seen a client use bookmarks. We remove them to reduce clutter. | |
options.enableBookmarks = 0 | |
# Let your users create folders in the extension browser. | |
options.createFoldersInEB = 1 |
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
TCEMAIN { | |
# Set default permissions for pages. We tend to limit access to pages using | |
# page mounts on backend user groups. We find that the permissions settings in the | |
# access module tend to cause confusion, and that it's better to just let users edit | |
# any page in the tree to which they have access via a mount. Therefore, we set very | |
# permissive permissions by default. | |
permissions { | |
// 1 is the CIC user | |
userid = 1 |