Skip to content

Instantly share code, notes, and snippets.

View NEK-RA's full-sized avatar

RyoidenshiAokigahara NEK-RA

  • Russia
View GitHub Profile
@NEK-RA
NEK-RA / tsconfig.json
Created November 25, 2021 10:56 — forked from KRostyslav/tsconfig.json
tsconfig.json с комментариями.
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".
@NEK-RA
NEK-RA / dns.md
Created June 27, 2021 18:03 — forked from roge/dns.md
Public DNS Servers

DNS.md

A list of reasonably reliable DNS servers that I've personally tested to ensure that they fully support DNSSEC and do not hijack NXDOMAIN responses.

IPv4

Address Organization Location Service
8.8.8.8 Google Worldwide (Anycast) Google Public DNS
8.8.4.4 Google Worldwide (Anycast) Google Public DNS
@NEK-RA
NEK-RA / A problem with Windows OpenSSH.md
Last active September 7, 2023 14:53
Failing OpenSSH connection via pubkey-auth. Logs both from server and client

Problem

I installed OpenSSH Server on windows 10 from Win10 -> Settings -> Apps -> Apps & features -> Optional features -> Add a feature -> OpenSSH server

I setup it as described at official docs https://docs.microsoft.com/ru-ru/windows-server/administration/openssh/openssh_install_firstuse

But when I changed sshd_config to deny password-based auth, I become failed with errors Permission denied (publickey,keyboard-interactive).

Both server and client is Windows 10 with OpenSSH Server/Client installed from "Optional Features"

@NEK-RA
NEK-RA / gist:3af3cdf056073fa6349c50453443af5b
Last active May 30, 2021 17:31 — forked from Ayms/gist:077b114a27450f773939
Monitoring and blocking the bittorrent monitoring spies

Target

Protecting the privacy of the bittorrent users and protecting them from the monitoring spies making their activity much less visible by changing the way they connect to a torrent and setting a method to establish dynamic blocklists and maintain them.

Abstract

Previous research has focused mainly on discovering monitors using trackers, this study focuses on tracking and blocking the monitors using the bittorrent peers and content discovery system only (called the DHT).

The global result is that the spies are organized to monitor automatically whatever exists in the bittorrent network, they are easy to find but difficult to follow since they might change their IP addresses and are polluting the DHT.

@NEK-RA
NEK-RA / .guide - Running Cloudflare Wrangler in the cloud IDE.md
Last active November 25, 2021 05:23
Running Cloudflare Wrangler in the cloud IDE

What is it

Cloudflare Wrangler is a

CLI tool designed for folks who are interested in using Cloudflare Workers. quote from Github Repository - https://github.com/cloudflare/wrangler

Cloudflare Workers is a service, where you can host javascript code, which will run when you open it's URL. There is no access to filesystem or direct connections to databases, but you can check examples in official docs to decide if you need that or not.

Target of this Repl(project)