Skip to content

Instantly share code, notes, and snippets.

View tobyS's full-sized avatar

Tobias Schlitt tobyS

View GitHub Profile
@tobyS
tobyS / fold_calls.vim
Created August 9, 2012 07:11
Fold method calls in Xdebug function traces in VIM
func! FoldCalls(regex) range
let l:lastLine = a:lastline
let l:firstLine = a:firstline
let l:currentSpaceCount = -1
let l:startTime = localtime()
let l:currentLine = l:firstLine
while l:currentLine <= l:lastLine
@tobyS
tobyS / status.txt
Created September 24, 2012 17:34
Status & tasks Integration Test Suite
Configuration read from /home/dotxp/qafoo/projects/external/ezp-next/eZ/Publish/API/Repository/Tests/phpunit-legacy.xml
............................................................. 61 / 1271 ( 4%)
............................................................. 122 / 1271 ( 9%)
............................................................. 183 / 1271 ( 14%)
............................................................. 244 / 1271 ( 19%)
............................................................. 305 / 1271 ( 23%)
............................................................. 366 / 1271 ( 28%)
............................................................. 427 / 1271 ( 33%)
............................................................. 488 / 1271 ( 38%)
16) eZ\Publish\API\Repository\Tests\SearchServiceTest::testFindAndSortContent with data set #2 (eZ\Publish\API\Repository\Values\Content\Query, '/home/dotxp/qafoo/projects/external/ezp-next/eZ/Publish/API/Repository/Tests/_fixtures/Legacy//SortLocationDepth.php')
Search results do not match.
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
'valueObject' => Array (
- 'id' => 11
- 'title' => 'Members'
+ 'id' => 12
<FilesMatch "\.html$">
Allow from all
</FilesMatch>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /index.php [L]
<?php
abstract class SnakStorage
{
public function canStore( Snak $snak )
{
throw new \RuntimeException("Not implemented, yet.");
}
public function storeSnak( $snak, $snakRole /* ... */ )
<FilesMatch "\.html$">
Allow from all
</FilesMatch>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /index.php [L]
<?php
class PackageChanges extends \ArrayObject
{
/**
* @var string
*/
public $packageName;
/**
@tobyS
tobyS / git-spull
Created January 29, 2014 07:59
Git commands to stash, pop stash & rebase by default. Just put the files (with the given names) into a bin-dir and make them executable. The use e.g. "$ git spush" instead of "$ git push".
#!/bin/bash
STASH_RESULT="`git stash`";
git pull --rebase
if `echo "$STASH_RESULT" | grep -q 'Saved working directory'`
then
git stash pop
fi
3n 2n+1
n = 1: 3 3
n = 2: 6 5
n = 3: 9 7
...
@tobyS
tobyS / vimmux
Created August 28, 2015 13:36
Re-attach to an existing VIM session in a new tab
#!/bin/bash
# alias vim="vimmux"
export TERM="xterm-256color"
if tmux has-session -t vim
then
if [ "$#" != "1" ]
then