Skip to content

Instantly share code, notes, and snippets.

View eerison's full-sized avatar
🇧🇷
🇩🇪

Erison Silva eerison

🇧🇷
🇩🇪
View GitHub Profile
@eerison
eerison / easy-php-setup.sh
Last active October 24, 2025 10:43
Easy php setup
#!/bin/bash
# You can run using: bash <(curl -fsSL https://gist.githubusercontent.com/eerison/b79070bf142e4ea301867bd3308dadea/raw/easy-php-setup.sh)
git clone https://github.com/shield-wall/easy-php-setup.git
cd easy-php-setup
docker compose up -d --wait
docker compose exec -T php git config --global --add safe.directory /app
docker compose exec php composer install
@eerison
eerison / sonata-page.sh
Last active October 24, 2025 12:44
Symfony install
#!/bin/bash
# bash <(curl -fsSL https://gist.githubusercontent.com/eerison/78e1158ea624323139991814451bc55b/raw/sonata-page.sh)
#just to make sure the containers are running
docker compose up -d
docker compose exec -T php git config --global --add safe.directory /app
docker compose exec -T php composer config extra.symfony.allow-contrib true
docker compose exec -T php composer require sonata-project/page-bundle
@eerison
eerison / compose.override.yaml
Last active May 20, 2025 14:18
xdebug Configuration
services:
php:
volumes:
- ~/.config/nvim-external/xdebug-config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
#It is necessary for linux environment.
extra_hosts:
- "host.docker.internal:host-gateway"
@eerison
eerison / ha-z2m-moes-ufo-r11.yml
Last active June 29, 2024 08:05
[MOES - UFO-R11] Homeassistant blueprint - zigbee2mqqt
blueprint:
test: 123
@eerison
eerison / mac-setting.md
Last active September 21, 2023 11:26
Install astro
@eerison
eerison / rector-sonata-core-bundle.php
Last active February 2, 2022 18:35
This rule help you to remove the deprecated core bundle from sonata admin project.
<?php
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [
StringClassNameToClassConstantRector::class => [
__DIR__ . '/rector.php',
],
]);
// it need to be used with rector php: https://github.com/rectorphp/rector