xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
This file contains hidden or 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
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install [email protected] | |
brew unlink [email protected] | |
brew link postgresql |
This file contains hidden or 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
kubectl create -f test.yaml | |
#secret "postgres-files-secret" created | |
#statefulset "postgres-statefulset" created | |
kubectl exec -it postgres-statefulset-0 /bin/sh | |
ls -lah /var/lib/postgresql/ | |
# total 12 | |
# drwxr-xr-x 3 root root 4.0K May 19 16:02 . | |
# drwxr-xr-x 3 root root 4.0K May 19 16:02 .. |
This file contains hidden or 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 | |
/** | |
* sfValidatorZip validates a zip code. | |
* | |
* @author Brent Shaffer <[email protected]> | |
*/ | |
class sfValidatorZip extends sfValidatorRegex | |
{ |
This file contains hidden or 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
class FormFieldManager | |
{ | |
/** | |
* Recria fields com rebra de bloqueio. | |
* | |
* @param FormInterface $sourceForm | |
* @param FormInterface $child | |
*/ | |
public function rebuildChild(FormInterface $sourceForm, FormInterface $child) | |
{ |
This file contains hidden or 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
use Symfony\CS\FixerInterface; | |
use Symfony\CS\Tokens; | |
class ShortArraySyntaxFixer implements FixerInterface | |
{ | |
public function fix(\SplFileInfo $file, $content) | |
{ | |
$tokens = Tokens::fromCode($content); | |
for ($index = 0, $c = $tokens->count(); $index < $c; $index++) { |
This file contains hidden or 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 | |
$token = '<yourtoken>'; | |
// Find latest version | |
exec('git tag', $tags, $return); | |
usort($tags, 'version_compare'); | |
$latest = array_pop($tags); | |
// Get commits since latest version | |
exec('git log ' . $latest . '...HEAD --oneline', $commits, $return); |
This file contains hidden or 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 MFB\Behat\Subcontext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Symfony\Component\Console\Tester\CommandTester; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
/** |
This file contains hidden or 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
// ==UserScript== | |
// @name Adds Labels on Github Pull Request | |
// @namespace http://fabien.potencier.org | |
// @include https://github.com/*/*/pulls* | |
// @version 2 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// ==/UserScript== | |
$(function() { | |
$(".pulls-list .list-group-item h4").each(function() { | |
var pull_request = this; |
This file contains hidden or 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 Dash\ApplicationBundle\ServiceAdapter; | |
use Vespolina\Entity\Invoice\Item; | |
use Vespolina\Entity\Partner\Partner; | |
use Vespolina\Sync\ServiceAdapter\AbstractServiceAdapter; | |
use Vespolina\Sync\Entity\EntityData; | |
NewerOlder