Skip to content

Instantly share code, notes, and snippets.

View VasiliyRusin's full-sized avatar
⌨️

Vasiliy Rusin VasiliyRusin

⌨️
  • Russian Federation/Novosibirsk
View GitHub Profile
@VasiliyRusin
VasiliyRusin / Тестовое задание Node.js Backend Developer.md
Created March 5, 2024 12:17
Тестовое задание на позицию Node.js Backend Developer

Тестовое задание Node.js Backend Developer

Необходимо реализовать сервис API для записи человека на прием к врачу, с напоминанием за 2 часа до приема.

Стек

  • Koa, Express, NestJS
  • TypeORM, Sequelize, Prisma
  • PostgreSQL, MongoDB, Redis
  • RabbitMQ

Сущности

@VasiliyRusin
VasiliyRusin / EventBus.js
Created March 10, 2022 18:39
Simple event bus
const bus = {};
function on(event, callback) {
const id = Symbol('');
if (!bus[event]) bus[event] = {};
bus[event][id] = callback;
return {
import 'package:flutter/material.dart';
class TestPage extends StatefulWidget {
TestPage({Key? key, this.title}) : super(key: key);
final String? title;
@override
_TestPageState createState() => _TestPageState();
}
######################
# Become a Certificate Authority
######################
CAName=CA
# Generate private key
openssl genrsa -des3 -out $CAName.key 2048
# Generate root certificate