Skip to content

Instantly share code, notes, and snippets.

@NeoBlack
NeoBlack / cleanupFunctionalTestDatabases.sh
Last active August 29, 2015 14:21
shell script to remove functional test databases.
#!/bin/bash
################################################################################
# Cleanup databases after functional test runs
#
# call for a check:
# ./cleanupFunctionalTestDatabases.sh
# call for really delete databases:
# ./cleanupFunctionalTestDatabases.sh doit
################################################################################
@pgampe
pgampe / test ts
Created June 30, 2012 12:01
Show TYPO3 Typoscript security problem with insertData = 1
page >
page = PAGE
page.10 = COA_INT
page.10 {
10 = HMENU
10 {
special = directory
# a menu root page
special.value = 105
@pgampe
pgampe / TYPO3-Documentation-clone.sh
Created July 9, 2012 17:06
Clone all TYPO3 Documentation
#!/bin/bash
# This script is in the public domain.
# Based on an idea by Fabien Udriot
# see http://pastie.org/4225971
# Enter your username for typo3.org here. If no username is entered here, you
# will be promted for it during execution.
username=""
@ohader
ohader / forge-analyse.php
Last active December 10, 2015 11:38
Forge Issue Analysis
<?php
/**
* Usage:
* php forge-analyse.php <date-from> [<date-until>]
* php forge-analyse.php 2012-12-24 2012-12-31
*
* @author Oliver Hader <oliver.hader@typo3.org>
* @license GPL v2 or any later version
* @see http://forge.typo3.org/projects/typo3v4-core/wiki/FriendlyGhost
*/
@baschny
baschny / AdditionalConfiguration.php
Created November 16, 2013 12:47
TYPO3 CMS AdditionalConfiguration.php adaptations for easy use of "git bisect". If you want to use "git bisect" on 6.2 development, you end up having to change your configuration depending if certain features are in or not. This addition to AdditionalConfiguration.php help automating these changes for you at runtime depending if certain commit i…
<?php
# ...
function isCommitIncluded($commit) {
$cmd = sprintf('GIT_DIR=%s/.git git log -1 %s^..HEAD', PATH_site . 'typo3_src', $commit);
$output = '';
exec($cmd, $output);
return (count($output) > 0);
}
@Tuurlijk
Tuurlijk / BackendLayouts.ts
Last active February 1, 2017 12:36
Beating TYPO3 copy-mode-translations into submission
lib.layout.content = COA
lib.layout.content {
10 < styles.content.get
10.select {
where = colPos={field:colPos}
where.insertData = 1
where.stdWrap.noTrimWrap = || AND NOT sys_language_uid = 0|
where.stdWrap.noTrimWrap.if.isTrue.postUserFunc = TypoScript\PageIsCopyModeTranslation->evaluate
includeRecordsWithoutDefaultTranslation = 1
@htuscher
htuscher / AbstractCommandController.php
Created November 27, 2015 08:02
TYPO3 Command Controller TypoScript from different rootPid
<?php
namespace Onedrop\Solution\Command;
/*****************************************************************
* Copyright notice
*
* (c) 2015 Hans Höchtl <hhoechtl@1drop.de>
*
* All rights reserved
@helhum
helhum / deploy-to-target-info.md
Last active August 23, 2018 13:30
TYPO3 setup steps

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
@barryvdh
barryvdh / colorbox.less
Created March 10, 2012 18:49
Colorbox skin for Bootstrap
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
@albarralnunez
albarralnunez / main.tex
Last active June 3, 2022 10:43
LaTeX - Template for presentation
% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright