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/bash | |
set -e | |
set -u | |
set -o pipefail | |
COMMAND=${1:-"help"} | |
ES="http://localhost:9200" | |
SNAPSHOT_DIR=$(dirname $(readlink -f $0))"/var/elasticsearch" |
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/bash | |
set -e | |
set -u | |
set -o pipefail | |
CONTAINER_OR_ALIAS=${1:-""} | |
COMMAND=${2:-""} | |
ARGUMENTS="${@:3}" |
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/bash | |
SRC=${1:-"src/"} | |
if [ ! -d "$SRC" ]; then | |
echo "Usage: $0 src/path" | |
exit 1 | |
fi | |
list-namespaces "$SRC" | sed -e 's/^\([^\\]*\\[^\\]*\).*/\1/g' | sort -u |
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 Zalas\Test; | |
use Symfony\Component\Process\Process; | |
trait BackgroundProcess | |
{ | |
/** | |
* @var Process |
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 | |
declare(strict_types=1); | |
namespace SymfonyLive\Mastermind\Adapters\Database; | |
use Doctrine\Common\Persistence\ManagerRegistry; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use RuntimeException; |
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
--- ext/dom/node.c 2012-08-06 17:49:48.826716692 +0800 | |
+++ ext/dom/node.c 2012-08-06 17:52:47.633484660 +0800 | |
@@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA | |
RETVAL_FALSE; | |
} else { | |
if (mode == 0) { | |
+#ifdef LIBXML2_NEW_BUFFER | |
+ ret = xmlOutputBufferGetSize(buf); | |
+#else | |
ret = buf->buffer->use; |
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
namespace :web do | |
namespace :dev do | |
desc <<-DESC | |
Opens the development controller to everyone. | |
DESC | |
task :enable do | |
dev_controller = current_release+"/"+web_path+"/app_dev.php" | |
run "sed -e 's/^\\([^\\/]\\{1,\\}.*403 Forbidden.*\\)/\\/\\/ \\1/' -e 's/^\\([^\\/]\\{1,\\}exit.*\\)/\\/\\/ \\1/' -i #{dev_controller}" | |
end |
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
config: | |
packagename: symfony-demo | |
version: 1.0.0 | |
arch: all | |
maintainer: Bob The Builder <bob@example.com> | |
description: Symfony demo project | |
url: http://symfony.com | |
packagetype: rpm | |
depends: '' | |
# - apache2 |
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 | |
FEATURE_ARGUMENTS=() | |
for suite in $(./bin/behat -dl | cut -d ' ' -f 1 | sort -u | grep -e '^$' -v); do | |
echo "Looking for "$suite" suite features..." | |
for feature in $(./bin/behat --dry-run --suite $suite | grep -e 'features/.*\.feature' | sed -e 's/^.*\(features\/.*\.feature\).*$/\1/g' | sort -u); do | |
FEATURE_ARGUMENTS+=("--format=junit --out=build/$feature --suite=$suite $feature") | |
done | |
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
#!/bin/bash | |
ag 'function.*\(' | \ | |
sed -e 's/.*function \([^(]*\)(.*/\1/g' | \ | |
sort -u | \ | |
xargs -I% bash -c "[ `ag '%\(' | wc -l` == 1 ] && echo %" |