Качаем образ Ubuntu Server и записываем его на флешку:
$ sudo dd if=/home/sergey/Downloads/ubuntu-21.04-live-server-amd64.iso of=/dev/sda conv=fdatasync status=progressОсновной стек: nginx + mysql + php-fpm.
Предполагается, что вы только что настроили WSL в своей системе и установили чистую ubuntu 18.04 LTS.
Почему не apache? С точки зрения производительности, быстродействия, а как следствие - нагрузки - связка nginx + php-fpm показывает себя гораздо лучше. Есть в этом решении и минусы - мы лишаемся удобного .htaccess и все необходимые настройки будем вынуждены производить в конфигах nginx и php, но оно того стоит.
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).Шаг 1. Глобально устанавливаем vercel.
Для этого в консоли пишем npm i -g vercel. На момент написания инструкции актуальная версия — 21.0.1.
Шаг 2. Регистрируемся на vercel.com.
Шаг 3. Переходим в корень проекта.
| const nodemailer = require('nodemailer'); | |
| const smtpTransport = require('nodemailer-smtp-transport'); | |
| const transporter = nodemailer.createTransport( | |
| smtpTransport({ | |
| service: 'yandex/google', | |
| host: 'smtp.yandex.ru/smtp.gmail.com', | |
| auth: { | |
| user: 'your@email.com', | |
| pass: 'yourEmailPassword', |
| # U U SSSSS EEEEEE RRRRR | BBBBB OOOOO TTTTTTTTT | |
| # U U S E R R | B B O O T | |
| # U U SSSS EEEEEE RRRRR | BBBBB O O T | |
| # U U S E R R | B B O O T | |
| # UUUU SSSSS EEEEEE R R | BBBBB OOOOO T | |
| from pyrogram import Client, filters | |
| from pyrogram.errors import FloodWait | |
| from pyrogram.raw import functions |
| deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.
| #!/usr/bin/env bash | |
| SLEEP_DURATION=${SLEEP_DURATION:=1} # default to 1 second, use to speed up tests | |
| progress-bar() { | |
| local duration | |
| local columns | |
| local space_available | |
| local fit_to_screen | |
| local space_reserved |