Skip to content

Instantly share code, notes, and snippets.

View kujo205's full-sized avatar
💫
Reject shyness, embrace linux

Ivan Kuts kujo205

💫
Reject shyness, embrace linux
View GitHub Profile
const baseUrl = 'http://localhost:3000'
class UsesAPI {
async fecthUserByEmail(email, password) {
// const r = await fetch(baseUrl + `/users?email=${email}&password=${}`, {
// method: 'GET',
// })
https://docs.google.com/document/d/1-Fn5RPwg8Ke4VUf_vMZyy8HtuAA17-z1QiouN5FmahU/edit
@kujo205
kujo205 / lab3 networks
Last active May 11, 2024 11:05
Guide on labs in networks course
Центр сертифікації
1. Cтворення закритого ключа RSA openssl :
openssl genrsa -aes256 -out private/cakey.pem 4096
password - lab3
-aes256 для шифрування
-4096 довжина
2. Cтворення самопідписаного сертифіката X.509 :
// db file with smpt server configuration example
root@Debian-VM-1:/etc/bind# cat db.zone12.edu
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns4.zone12.edu. root.zone12.edu. (
5 ; Serial
3600 ; Refresh
86400 ; Retry
.386
.model flat, stdcall
option casemap :none
include \masm32\include\masm32rt.inc
.data?
uninitWindowContent db 512 dup(?)
uninitDWordD db 256 dup(?)
uninitNegativeDWordD db 256 dup(?)
uninitQWordE db 256 dup(?)
@kujo205
kujo205 / ExtractClassMethodReturnTypes.ts
Last active February 11, 2024 00:30
This type extracts `return types` in NestJs framework so this return types could be used in axios api on the fly
type ExtractClassMethodReturnTypes<T> = {
[K in keyof T]: T[K] extends (...args: any[]) => infer R ? Awaited<R> : never;
};
type AuthControllerMethods = ExtractClassMethodReturnTypes<AuthController>;

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

ℹ️ git-conventional-commits A CLI util to ensure this conventions and generate changelogs

Commit Formats

Default