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
| # ============================================================================== | |
| # [GOLD STANDARD] Multi-Stage Dockerfile (Laravel 11 + Nuxt 2) | |
| # | |
| # STRATEGY: | |
| # 1. Backend Stage: PHP 8.2 FPM | |
| # 2. Frontend Stage: Node 22 (with legacy provider) | |
| # 3. Production Stage: Merged assets + Nginx/Supervisor | |
| # ============================================================================== | |
| # ------------------------------------------------------------------------------ |
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
| # Шпаргалка по консольным командам Git | |
| ## Общее | |
| Git — система контроля версий (файлов). Что-то вроде возможности сохраняться в компьютерных играх (в Git эквивалент игрового сохранения — коммит). | |
| Любой файл в папке существующего репозитория может находиться или не находиться под версионным контролем (отслеживаемые и неотслеживаемые). | |
| Неотслеживаемые файлы можно в любой момент сделать отслеживаемыми и наоборот. |
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
| # Ubuntu & Debian | |
| # Store this file as /etc/apt/apt.conf.d/100-nginx-post-update | |
| DPkg::Post-Invoke {"/usr/local/bin/ngx_brotli"; }; |
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
| //## Moment.JS Holiday Plugin | |
| // | |
| //Usage: | |
| // Call .holiday() from any moment object. If date is a US Federal Holiday, name of the holiday will be returned. | |
| // Otherwise, return nothing. | |
| // | |
| // Example: | |
| // `moment('12/25/2013').holiday()` will return "Christmas Day" | |
| // | |
| //Holidays: |
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
| const mix = require('laravel-mix'); | |
| const s3Plugin = require('webpack-s3-plugin'); | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Mix Asset Management | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Mix provides a clean, fluent API for defining some Webpack build steps | |
| | for your Laravel application. By default, we are compiling the Sass |
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
| # ------------------------------ On your local machiene ------------------------------------------------ # | |
| # Set up a local repository on your computer. I use git hub to do this but you can also use the following | |
| $ mkdir website && cd website | |
| # Initialize the git repository on your site | |
| $ git init | |
| # Add your site files - (Lets say you add index to your site) | |
| # You can either just add the file it self by doing this: |