Skip to content

Instantly share code, notes, and snippets.

View SeryiBaran's full-sized avatar
🐒
жоски

SeryiBaran SeryiBaran

🐒
жоски
View GitHub Profile
@s3rgeym
s3rgeym / Ubuntu-Home-File-Server.md
Last active April 17, 2026 13:26
Домашний файловый сервер на Ubuntu

Домашний файловый сервер на Ubuntu

Установка и настройка Ubuntu

Качаем образ Ubuntu Server и записываем его на флешку:

$ sudo dd if=/home/sergey/Downloads/ubuntu-21.04-live-server-amd64.iso of=/dev/sda conv=fdatasync status=progress
@positron48
positron48 / wsl-web-server.md
Last active January 13, 2026 08:22
Поднимаем web-server под WSL (nginx + php-fpm + mysql)

Поднимаем web-server под WSL

Основной стек: nginx + mysql + php-fpm.

Предполагается, что вы только что настроили WSL в своей системе и установили чистую ubuntu 18.04 LTS.

Почему не apache? С точки зрения производительности, быстродействия, а как следствие - нагрузки - связка nginx + php-fpm показывает себя гораздо лучше. Есть в этом решении и минусы - мы лишаемся удобного .htaccess и все необходимые настройки будем вынуждены производить в конфигах nginx и php, но оно того стоит.

@sindresorhus
sindresorhus / esm-package.md
Last active May 5, 2026 02:50
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use 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.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@loginsan
loginsan / vercel-cli-deploy.md
Last active August 9, 2024 05:42 — forked from didolf/now-cli-deploy.md
Как выгружать свой сайт на now.sh.

Как выгружать свой сайт на vercel (бывший now.sh).

  • Шаг 1. Глобально устанавливаем vercel.

    Для этого в консоли пишем npm i -g vercel. На момент написания инструкции актуальная версия — 21.0.1.

  • Шаг 2. Регистрируемся на vercel.com.

  • Шаг 3. Переходим в корень проекта.

@muhsalaa
muhsalaa / mailer.js
Created September 23, 2020 13:53
nodemailer setup, work for yandex and google
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
@ishad0w
ishad0w / sources.list
Created April 30, 2020 16:55
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
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
@yovko
yovko / ohmyzsh.md
Last active February 6, 2026 17:14
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

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.

@Imater
Imater / tomat.sh
Last active July 17, 2025 20:17
> tomat 25 'Название дела'
#!/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