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
| #!/bin/bash | |
| DOCKER_RUNNER_COMMAND='docker run --rm -v $(pwd):/app -w /app --net=host -it' | |
| alias dps="docker ps" | |
| alias dpsq="docker ps -q" | |
| alias ds="docker stop" | |
| alias dsq="docker ps -q | xargs docker stop" | |
| # PHP7 |
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 | |
| if ( $preventivo->getAnagrafica() | |
| && $preventivo->getAnagrafica()->getDatiDomicilioRichiedente() | |
| && $preventivo->getAnagrafica()->getDatiDomicilioRichiedente()->getLuogo() | |
| && $preventivo->getAnagrafica()->getDatiDomicilioRichiedente()->getLuogo()->getComune() | |
| && $preventivo->getAnagrafica()->getDatiDomicilioRichiedente()->getLuogo()->getComune()->getProvincia() | |
| && $preventivo->getAnagrafica()->getDatiDomicilioRichiedente()->getLuogo()->getComune()->getProvincia()->getRegione() | |
| ) { | |
| // succedono cose |
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
| #!/bin/bash | |
| dockerip() | |
| { | |
| docker inspect "$1" | jq -r ".[0].NetworkSettings.Networks.bridge.IPAddress" | |
| } | |
| dockerips() | |
| { | |
| for container in `docker ps --format "{{.Names}}"`; do |
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
| #!/bin/sh | |
| DOCKER_RUNNER_COMMAND='docker run --rm -v $(pwd):/app -w /app --net=host -it' | |
| # PHP7 | |
| alias php="$DOCKER_RUNNER_COMMAND php:7.2-cli php" | |
| # Composer | |
| alias composer="$DOCKER_RUNNER_COMMAND composer" |
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
| image: ubuntu:latest | |
| variables: | |
| SMOKE_TEST_HOST: http://example.org | |
| SMOKE_TEST_URI: / | |
| SMOKE_TEST_EXPECTED_STATUS_CODE: 200 | |
| stages: | |
| - smoke_test |
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 | |
| use Lasagna; | |
| /** | |
| * OOP version of lasagna.php | |
| */ | |
| class LasagnaBesciamella extends Lasagna | |
| { | |
| private function getLayer(): array |
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 | |
| /** | |
| * @param array $datiAggiuntivi | |
| * | |
| * @return array | |
| */ | |
| protected function formatDatiAggiuntivi(array $datiAggiuntivi) | |
| { | |
| $newDatiAggiuntivi = []; |
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
| #!/usr/bin/env bash | |
| DEPS=`composer show | cut -d" " -f1` | |
| for DEP in $DEPS; do | |
| composer show $DEP | egrep "^php\ " | |
| done |
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 CronManagerCommand extends ContainerAwareCommand | |
| { | |
| const CRON_PREFIX = 'cron:commands:'; | |
| const DEFAULT_TTL = 60 * 60; | |
| /** @var \Redis */ | |
| protected $redis; | |
| /** | |
| * {@inheritdoc} |