Skip to content

Instantly share code, notes, and snippets.

protected function handleCliArguments($generator) {
foreach ($this->cli_args as $name => $value) {
switch ($name) {
case '--disableClassAliases':
$generator->setIncludeAliases(FALSE);
break;
case '--disableScanFiles':
$generator->setScanFiles(FALSE);
break;
case '--extensions':
@pgampe
pgampe / avatar.pl
Last active December 15, 2015 21:59
Gource setup, depends on some perl magic
#!/usr/bin/perl
#fetch Gravatars
use strict;
use warnings;
use LWP::Simple;
use Digest::MD5 qw(md5_hex);
use Thread::Pool::Simple;
*.png diff=exif
*.jpg diff=exif
*.gif diff=exif
*.doc diff=strings
*.odt diff=odt2txt
*.sxw diff=odt2txt
@pgampe
pgampe / t3o-subdomains
Last active December 14, 2015 18:09
typo3.org Subdomains for users
http://forge.typo3.org/ Forge, central extension hub
http://typo3.org/ Central Domain, landing page for TYPO3 CMS
http://api.typo3.org/ API reference overview page, references for each product
http://notes.typo3.org/ Etherpad lite server for quickly taking Notes
http://docs.typo3.org/ Official documentation for all products
http://fluid.typo3.org/ Landing page for TYPO3 Fluid
http://neos.typo3.org/ Landing page for TYPO3 Neos
http://demo.typo3.org/ Public demo page for TYPO3 CMS
http://wiki.typo3.org/ Official wiki
http://review.typo3.org/ Review system (gerrit)
<?php
/**
* Test class
*/
class Foo {
public $bar = 'test';
private $baz = '123';
/**
* @param string $test
diff --git a/Resources/Private/PHP/xhprof-ui/classes/xhprof_ui.php b/Resources/Private/PHP/xhprof-ui/classes/xhprof_ui.php
index 863ed9f..5791a31 100644
--- a/Resources/Private/PHP/xhprof-ui/classes/xhprof_ui.php
+++ b/Resources/Private/PHP/xhprof-ui/classes/xhprof_ui.php
@@ -81,23 +81,23 @@ class XHProf_UI {
if (($data1 = $this->runs[0]->get_data()) && ($data2 = $this->runs[1]->get_data())) {
$this->_setup_metrics($data2);
- return new XHProf_UI\Report\Diff(&$this, $data1, $data2);
+ return new XHProf_UI\Report\Diff($this, $data1, $data2);
@pgampe
pgampe / grid.ts
Created November 26, 2012 21:49
grid config
backend_layout {
colCount = 5
rowCount = 5
rows {
1 {
columns {
1 {
name = Add
rowspan = 2
colPos = 4
@pgampe
pgampe / aufgabe5.c
Created October 28, 2012 02:17
Info/Uni Bonn/WS2012-2012/Algo I/Blatt 2/Aufgabe 5
#include <stdlib.h>
#include <stdio.h>
void printA(int A[10]) {
int i = 0;
for (i = 0; i < 10; i++) {
printf("%i,", A[i]);
}
printf("\n");
}
@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=""
@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