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
composer create-project symfony/website-skeleton sandbox | |
cd sandbox | |
composer install --optimize-autoloader |
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
name: Continuous Deployment | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
tests: | |
name: Deployment | |
runs-on: ubuntu-latest |
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 bash | |
set -euo pipefail | |
# ====================================================================================================================== | |
# Make the SSH connection to EC2 instances easier by requiring only tag values instead of IP addresses. | |
# | |
# Usage: | |
# bash aws-connect.sh <environment> <bastion|apache|nginx|...> <index> | |
# | |
# Examples: |
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
- <a href="<?php echo $helper->getCategoryUrl($category); ?>"> | |
+ <a href="<?php echo $helper->getData('url_path'); ?>"> | |
<?php echo $category->getData('name'); ?> | |
</a> |
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
<IfModule evasive_module> | |
DOSHashTableSize 3097 | |
DOSPageCount 2 | |
DOSSiteCount 50 | |
DOSPageInterval 1 | |
DOSSiteInterval 1 | |
DOSBlockingPeriod 10 | |
</IfModule> |
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
# Remove all dangling images | |
docker rmi $(docker images --filter="dangling=true" --quiet) | |
# Remove all stopped containers | |
docker rm $(docker ps --filter="status=exited" --quiet) | |
# Remove all dangling volumes | |
docker volume rm $(docker volume ls --filter="dangling=true" --quiet) |
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
# Compiles the project into a PHAR archive. | |
docker run --rm --interactive --tty --volume="$(pwd):/app" ajardin/humbug-box compile -vvv |
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 bash | |
set -euo pipefail | |
# ==================================================================================================== | |
# The script below allows to check automatically a commit message before saving it. | |
# In order to use it, you have to copy this code in .git/hooks/commit-msg inside your project. | |
# Don't forget to add proper permissions if you create a new file (chmod +x). Bash 3+ is required. | |
# ==================================================================================================== | |
COMMIT_MSG=$(cat $1) |
NewerOlder