Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View t3easy's full-sized avatar
💭
Busy but happy!

Jan Kiesewetter t3easy

💭
Busy but happy!
View GitHub Profile

Requirements for deployment

  • ssh (generate key and put on server)
  • rsync must be available on both machines (deployment host and target host)
  • PHP cli binary must be available on both machines (deployment host and target host)
  • composer must be available on deployment host

Needed info for each target system:

  • deploy directory
UPDATE `tt_content` SET `bodytext` = `tx_mhcodehighlighter_geshi_code` WHERE `list_type` = 'mh_code_highlighter_pi1';
UPDATE `tt_content` SET `CType` = 'fs_code_snippet' WHERE `list_type` = 'mh_code_highlighter_pi1';
UPDATE `tt_content` SET `list_type` = '' WHERE `CType` = 'fs_code_snippet';
UPDATE `tt_content` SET `programming_language` = 'typoscript' WHERE `CType` = 'fs_code_snippet' AND `tx_mhcodehighlighter_geshi_lang` = 'typoscript.php';
UPDATE `tt_content` SET `programming_language` = 'bash' WHERE `CType` = 'fs_code_snippet' AND `tx_mhcodehighlighter_geshi_lang` = 'bash.php';
UPDATE `tt_content` SET `programming_language` = 'javascript' WHERE `CType` = 'fs_code_snippet' AND `tx_mhcodehighlighter_geshi_lang` = 'javascript.php';
UPDATE `tt_content` SET `programming_language` = 'php' WHERE `CType` = 'fs_code_snippet' AND `tx_mhcodehighlighter_geshi_lang` = 'php.php';
UPDATE `tt_content` SET `programming_language` = 'html' WHERE `CType` = 'fs_code_snippet' AND `tx_mhcodehighlighter_geshi_lang` = 'html4stric
// Exclude Piwik and Google Analytics parameter from cHash
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'] .= ', pk_campaign, pk_kwd, utm_source, utm_medium, utm_campaign, utm_term';
page.headerData {
# Apple touch icons
1424098000 = COA
1424098000 {
# iPhone
10 = IMAGE
10 {
file = EXT:mypackage/Resources/Public/Images/apple-touch-icon.png
file.width = 60
file.height = 60
// Start scroll
function scrollToAnchor(hash, duration) {
var target = $(hash), header, scrollTop = 0;
target = target.length > 0 ? target : $('[name=' + hash.slice(1) +']');
if (target.length > 0) {
header = $('#header');
scrollTop = target.offset().top;
if (target.attr('id') !== 'top' && header.length > 0 && header.css('position') === 'fixed'){
scrollTop = scrollTop - header.height();
}
20 = HMENU
20 {
special = categories
special.value = 2
1 = TMENU
1 {
wrap = <ul>|</ul>
NO {
lib.pageCategories = CONTENT
lib.pageCategories {
wrap = <ul>|</ul>
table = pages
select {
uidInList = this
pidInList = 0
selectFields = sys_category.title
join = sys_category_record_mm ON pages.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
where = sys_category_record_mm.tablenames = 'pages'
#!/usr/bin/env bash
# phase one: core install
# Pro tip: edit the script and use this repository instead to try out the
# codename "Awesome Ocelot" project - which should be even faster than the
# bare 6.2 core: https://github.com/NamelessCoder/TYPO3.CMS.git
# Live demo of "Awesome Ocelot" is at http://staging.namelesscoder.net
git clone https://github.com/TYPO3/TYPO3.CMS.git --depth 1
lib.requireJsModule = TEXT
lib.requireJsModule {
insertData = 1
append = TEXT
append.char = 32
prepend < .append
}
lib.requireJs = COA
lib.requireJs {
@t3easy
t3easy / update
Last active December 31, 2015 12:09
#!/bin/sh
composer require --no-update "typo3/neos:1.1.*"
composer require --no-update "typo3/neos-nodetypes:1.1.*"
composer require --no-update "typo3/neosdemotypo3org:1.1.*"
composer require --no-update "typo3/neos-kickstarter:1.1.*"
composer require --no-update "typo3/buildessentials:2.2.*"
composer update