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
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| pwd | |
| # Turn on maintenance mode | |
| $FORGE_PHP artisan down || true | |
| # Pull the latest changes from the git repository | |
| git reset --hard |
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
| # Docker aliases | |
| # Exec | |
| docker-exec() { | |
| docker exec $1 | |
| } | |
| docker-bash() { | |
| docker exec -it $1 /bin/bash | |
| } | |
| alias dbash="docker-bash" |
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
| name: Build and Deploy | |
| env: | |
| SSH_USER: ${{ secrets.DEPLOY_SSH_USER }} | |
| SSH_HOST: ${{ secrets.DEPLOY_SSH_HOST }} | |
| on: | |
| push: | |
| branches: [ master ] |
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
| # Install composer | |
| RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
| && php composer-setup.php \ | |
| && php -r "unlink('composer-setup.php');" \ | |
| && mv composer.phar /usr/local/bin/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
| #!/bin/sh | |
| sudo apt update && apt install -y php-cli php-dev php-mysql php-pgsql php-sqlite3 php-gd php-imagick php-curl php-imap php-mbstring php-xml php-zip php-bcmath php-soap php-intl php-readline php-ldap php-msgpack php-igbinary php-redis php-swoole php-memcached php-pcov php-xdebug |
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
| <input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /> |
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
| [alias] | |
| st = status -sb | |
| ci = commit | |
| cm = commit -m | |
| ac = !git add -A && git commit | |
| br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:blue)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate | |
| del = branch -D | |
| co = checkout | |
| cob = checkout -b | |
| f = fetch |
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 (!function_exists('nds')) { | |
| function nds(int | float $amount, bool $pickout = true, int $vat = 20): array | |
| { | |
| $amount = round($amount, 2); | |
| if ($pickout) { | |
| $withVat = $amount; |
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 (!function_exists('daysWithWord')) { | |
| function daysWithWord(int $days): string | |
| { | |
| $words = ['день', 'дня', 'дней']; | |
| $n = $days % 100; |
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
| # Yandex | |
| MAIL_MAILER=smtp | |
| MAIL_HOST=smtp.yandex.ru | |
| MAIL_PORT=587 | |
| MAIL_USERNAME="noreply@yandex.ru" | |
| MAIL_PASSWORD="password" | |
| MAIL_ENCRYPTION=TLS | |
| MAIL_FROM_ADDRESS="youremail@yandex.ru" | |
| MAIL_FROM_NAME="${APP_NAME}" |
NewerOlder