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
doctrine: | |
dbal: | |
# [...] | |
types: | |
member_id: My\Super\Namespace\Infrastructure\ORM\Type\MyCustomIdType |
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
doctrine: | |
# [...] | |
orm: | |
# [...] | |
mappings: | |
Your\Base\Namespace\Infrastructure: | |
is_bundle: false | |
type: yml | |
dir: '%kernel.project_dir%/config/mapping/Infrastructure' | |
prefix: Your\Base\Namespace\Infrastructure |
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
#!/usr/bin/env zsh | |
# | |
# Check command is installed | |
# | |
if ! [ -x "$(command -v jq)" ]; then | |
echo 'Error: jq is not installed. Please install it to run this command' >&2 | |
exit 127 | |
fi |
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
#!/usr/bin/env zsh | |
# | |
# Check file exists | |
# | |
if [ ! -f /tmp/foo.txt ]; then | |
echo "File not found!" >&2 | |
exit 1 | |
fi |
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
#!/usr/bin/env zsh | |
# | |
# Loop over an associative array | |
# | |
typeset -A knock_sequence | |
knock_sequence[server1]="0000 1111 2222" | |
knock_sequence[server2]="3333 4444 5555" |
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
#!/usr/bin/env zsh | |
# | |
# Check if array is empty | |
# | |
typeset -A knock_sequences | |
if [ ${#knock_sequences[@]} -eq 0 ]; then | |
echo "No knock sequence found." |
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
# This file must be placed where you run your `docker-compose` command | |
SUBDOMAIN=yourdomain # Your fully qualified domain without dash |
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
#!/usr/bin/env zsh | |
# | |
# Check argument is provided | |
# | |
if [ -n "$1" ]; then | |
echo "Command must have one argument" >&2 | |
exit 1 | |
fi |
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
export COMPOSER_COMPOSE_EXEC = docker-compose -f composer.docker-compose.yaml | |
.PHONY: composer | |
composer: | |
$(COMPOSER_COMPOSE_EXEC) run --rm composer |
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
# ######### # | |
# VARIABLES # | |
# ######### # | |
export PHP_VERSION = 7.1 | |
export PROJECT_NAME = your-project-name | |
# ####### # | |
# TARGETS # | |
# ####### # |