Skip to content

Instantly share code, notes, and snippets.

@ThorsAngerVaNeT
ThorsAngerVaNeT / nx-structure-angular-nestjs.md
Created December 8, 2024 05:08 — forked from trungvose/nx-structure-angular-nestjs.md
Nx workspace structure for NestJS and Angular

Nx

https://nx.dev/

Nx is a suite of powerful, extensible dev tools to help you architect, test, and build at any scale — integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more.

It has first-class support for many frontend and backend technologies, so its documentation comes in multiple flavours.

Principles

@ThorsAngerVaNeT
ThorsAngerVaNeT / readme.md
Created August 6, 2024 18:40 — forked from xneek/readme.md
Несколько GIT учёток на одном компе

Несколько GIT учёток на одном компе

Предположим что у вас есть два рабочих каталога

  • c:\work
  • c:\hobby

в c:\work вы хотите коммитить с рабочего профиля гитхаб ([email protected]), а в c:\hobby c личного ([email protected])

для настройки необходимо перейти в домашнюю директрию текущего пользователя cd ~/

@ThorsAngerVaNeT
ThorsAngerVaNeT / esm-package.md
Created August 4, 2024 19:20 — forked from sindresorhus/esm-package.md
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.
@ThorsAngerVaNeT
ThorsAngerVaNeT / ffmpeg_mkv_mp4_conversion.md
Created March 24, 2024 08:03 — forked from jamesmacwhite/ffmpeg_mkv_mp4_conversion.md
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@ThorsAngerVaNeT
ThorsAngerVaNeT / vscode-debug-current.md
Created September 28, 2023 12:30 — forked from ehaynes99/vscode-debug-current.md
VSCode debugging current typescript file

Debugging TypeScript with ts-node in VSCode

These launch configs will allow you to debug typescript files directly from VSCode. It will honor the tsconfig and resolve node modules properly. You do not need to install ts-node or nodemon, as everything is run using npx. The first

Launch Config

{
  "configurations": [
    {
      "type": "node",
      "request": "launch",
@ThorsAngerVaNeT
ThorsAngerVaNeT / tokens.md
Created August 21, 2023 05:22 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@ThorsAngerVaNeT
ThorsAngerVaNeT / how-to-sort-imports-like-a-pro.md
Created August 4, 2023 09:47 — forked from phatnguyenuit/how-to-sort-imports-like-a-pro.md
How to sort imports like a pro in TypeScript

How to sort imports like a pro in TypeScript

Crossing reviews becomes a very common activity today in engineering behavior. To help us review changes for pull/merge requests easier, sorting imports can help us a much. The codebase becomes more professional and more consistent, reviewers will be happier, and the review process will be faster, focusing on the implementation changes ONLY.

Have you ever thought about how to sort imports in TypeScript projects automatically?

Let me show you how to archive sorting imports automatically in TypeScript projects with ESLint!

@ThorsAngerVaNeT
ThorsAngerVaNeT / Commit Formatting.md
Created August 1, 2023 16:13 — forked from clemtibs/Commit Formatting.md
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@ThorsAngerVaNeT
ThorsAngerVaNeT / dev-setup.md
Created June 7, 2023 07:14 — forked from AbhieSpeaks/dev-setup.md
Development environment setup: Installing WSL2, Hyper, ZSH, VSCode, OhMyZsh

Installing Windows Subsystem for Linux 2, Hyper, ZSH, Node.js and VSCode extensions

Preview

Requirements

Steps