Skip to content

Instantly share code, notes, and snippets.

View TopHatCroat's full-sized avatar

Antonio Martinović TopHatCroat

View GitHub Profile
@sindresorhus
sindresorhus / esm-package.md
Last active September 22, 2024 13:17
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.
# Poglavlje 1
Informacijska imovina - skup informacija koje posjedujemo (na računalu ili osobno)
Informatička imovina - hardware-ska i fizička imovina
Povjerljivost - povjerljivost podataka koji se nalaze na Internet
Incident - Sigurnosni incident je čin narušavanja propisanih ili podrazumijevanih sigurnosnih normi vezanih uz Internet i usluge
Anonimnost - ne vidljivost i nepoznatost nekog identiteta/osobe
Autentikacija - provjera necijeg identiteta nekog subjekta.
Autorizacija - provjera da li je netko ovlašten izvršiti neku radnju
Identifikacija - dokazivanje identiteta
Bilježenje (Auditing) - bilježenje i logiranje pristupa i izvršenih radnji
@vasanthk
vasanthk / System Design.md
Last active September 22, 2024 21:07
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?