Skip to content

Instantly share code, notes, and snippets.

View vvatitv's full-sized avatar
🏠
Working from home

Vladimir 'def' Titov. vvatitv

🏠
Working from home
  • Full stack web developer
  • Moscow, Russia Federation
  • 05:22 (UTC +03:00)
View GitHub Profile
# ==============================================================================
# [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
# ==============================================================================
# ------------------------------------------------------------------------------
# Шпаргалка по консольным командам Git
## Общее
Git — система контроля версий (файлов). Что-то вроде возможности сохраняться в компьютерных играх (в Git эквивалент игрового сохранения — коммит).
Любой файл в папке существующего репозитория может находиться или не находиться под версионным контролем (отслеживаемые и неотслеживаемые).
Неотслеживаемые файлы можно в любой момент сделать отслеживаемыми и наоборот.
@vvatitv
vvatitv / 100-nginx-post-update
Created April 30, 2025 08:59 — forked from pujianto/100-nginx-post-update
Auto-update Nginx Brotli dynamic modules after apt upgrade on Ubuntu & CentOS https://devopsan.com/how-to-install-auto-upgrade-nginx-brotli-module-on-ubuntu/
# Ubuntu & Debian
# Store this file as /etc/apt/apt.conf.d/100-nginx-post-update
DPkg::Post-Invoke {"/usr/local/bin/ngx_brotli"; };
@vvatitv
vvatitv / moment-holidays.js
Created January 15, 2023 15:35 — forked from jrhames/moment-holidays.js
Holidays plugin for Moment.JS
//## 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:
@vvatitv
vvatitv / upload-s3-webpack.mix.js
Created July 9, 2022 18:24 — forked from avosalmon/upload-s3-webpack.mix.js
Upload assets to S3 using Laravel Mix
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
# ------------------------------ 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: