Skip to content

Instantly share code, notes, and snippets.

View tomasnorre's full-sized avatar
🐘

Tomas Norre Mikkelsen tomasnorre

🐘
View GitHub Profile
{
"version": "6.4.0",
"objects": Array[9][
{
"id": "849db510-00ec-11e8-9d54-43eefacdabed",
"type": "visualization",
"updated_at": "2018-09-19T18:43:37.483Z",
"version": 1,
"attributes": {
"title": "KubernetesNamespace",
{
"name": "tomasnorre/typo3v7",
"type": "project",
"require": {
"typo3/cms": "^7.6"
},
"config": {
"vendor-dir": "vendor",
"bin-dir": "bin"
},
<?php
namespace AOE\SchedulerTimeline\ViewHelpers;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
/**
* Class IncreaseViewHelper
*
*/
class IncreaseViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
$ php test.php
PHP Fatal error: Uncaught TypeError: Return value of doStuff() must be of the type bool, int returned in test.php:10
Stack trace:
#0 test.php(13): doStuff()
#1 {main}
thrown in test.php on line 10
Fatal error: Uncaught TypeError: Return value of doStuff() must be of the type bool, int returned in test.php:10
Stack trace:
#0 test.php(13): doStuff()

Hi.

I’ve a fairly simple functional test.

$this->assertSame(
    5,
    $this->subject->findAll()->count()
);
@tomasnorre
tomasnorre / docker-compose.yaml
Created September 15, 2019 17:02
Docker MySQL in Memory
services:
db:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
ports:
- 3306:3306
tmpfs:
@tomasnorre
tomasnorre / README.md
Last active September 26, 2019 15:10

What does it do?

This littel script fetches all packages, listed on packagist with type typo3-cms-extension, and iterates over them and collect download data for every single packages.

It will echo it as csv, so it can easily be parsed into a .csv file for better sorting etc.

How to generate csv file

$ php fetchExtensionDownloadDataFromPackagist.php &gt; downloadData.csv
<?php
namespace Aoe\AoeDbSequenzer\Xclass;
use Aoe\AoeDbSequenzer\Sequenzer;
use Aoe\AoeDbSequenzer\Service\Typo3Service;
use TYPO3\CMS\Core\Database\Query\QueryBuilder as CoreQueryBuilder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* @package Aoe\AoeDbSequenzer\Xclass
[
{
"id": "1",
"repository": {
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"name": "Hello-World",
"full_name": "octocat/Hello-World",
"owner": {
"login": "octocat",
{
"servers": [
{
"id": "Shanghai_VPN",
"url": "127.0.0.1",
"desc": "hi there"
},
{
"id": "Beijing_VPN",
"url": "127.0.0.2",