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 python | |
import curses | |
import argparse | |
import npyscreen | |
import MySQLdb | |
import sys | |
import time | |
### Option parser |
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 testCommand() { | |
$site = $this->siteRepository->findAll()->getFirst(); | |
/** @var Connection $connection */ | |
$connection = $this->entityManager->getConnection(); | |
$connection->exec('SET SESSION wait_timeout=1;'); | |
$this->outputLine('Set wait_timeout for mysql session to one second and wait two seconds now'); | |
sleep(2); | |
$domain = new Domain(); | |
$domain->setSite($site); | |
$domain->setHostPattern('katze2.de'); |
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
Uncaught exception #1: Warning: Error while sending QUERY packet. PID=27496 in /Users/bernd/Sites/neos2/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 959 | |
22 TYPO3\Flow\Error\ErrorHandler::handleError(2, "Error while sending QUERY packet. PID=27496", "/Users/bernd/Sites/neos2/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Connection.php", 959, array|1|) | |
21 PDO::beginTransaction() | |
20 Doctrine\DBAL\Connection::beginTransaction() | |
19 Doctrine\ORM\UnitOfWork::commit(NULL) | |
18 Doctrine\ORM\EntityManager::flush() | |
17 TYPO3\Flow\Persistence\Doctrine\PersistenceManager_Original::persistAll() | |
16 Brgmn\Test\Command\TestCommandController_Original::testCommand() | |
15 call_user_func_array(array|2|, array|0|) |
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 | |
namespace Brgmn\Test\Command; | |
/* * | |
* This script belongs to the TYPO3 Flow package "Brgmn.Test". * | |
* * | |
* */ | |
use TYPO3\Flow\Annotations as Flow; | |
use TYPO3\Flow\Persistence\Doctrine\PersistenceManager; |
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 | |
//... | |
class JobsCommandController extends CommandController { | |
public function workCommand($queue, $verbose = FALSE) { | |
do { | |
try { | |
$job = $this->jobManager->waitAndExecute($queueName); | |
if ($job !== NULL) { | |
$this->printLineIf('Processed job "%s"', $verbose, array($job->getLabel())); | |
$this->persistenceManager->clearState(); |
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 | |
curlftpfs -s ftp://user:[email protected] /mnt/ftpverz | |
rsync -rltDvz --force --exclude-from=rsync_exclude.txt /var/www/webprojekt/ /mnt/ftpverz/ | |
umount /mnt/ftpverz |
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
[alias] | |
release = "!git stash; git pull origin master;composer update --dev;git commit -am '[RELEASE] Update composer.lock';git push origin master;echo '### GURU RELEASE ACTION DONE ###';" |
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 | |
use \TYPO3\Surf\Domain\Model\Workflow; | |
use \TYPO3\Surf\Domain\Model\Node; | |
use \TYPO3\Surf\Domain\Model\SimpleWorkflow; | |
$application = new \TYPO3\Surf\Application\FLOW3(); | |
$application->setOption('repositoryUrl', '[email protected]:katzeag/Katzenet.git'); | |
$application->setDeploymentPath('/var/www/katzenet-app'); | |
$application->setOption('keepReleases', 20); | |
$application->setOption('composerCommandPath', '/usr/bin/composer'); |
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
if (@$_SERVER['SERVER_NAME'] == 'katzentest-ssl.local'){ | |
$this->_blIsSsl = true; | |
} | |
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
$list = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']); | |
$_SERVER['REMOTE_ADDR'] = $list[0]; | |
$_SERVER['HTTP_HOST'] = 'katzentest.com'; | |
$_SERVER['SERVER_NAME'] = 'katzentest.com'; | |
} |