Skip to content

Instantly share code, notes, and snippets.

View gingermat's full-sized avatar
🙃

Victor Elfimov gingermat

🙃
View GitHub Profile
@OddExtension5
OddExtension5 / 1. SoftwareArchitecture.md
Last active August 15, 2024 06:42
Software Architecture : Layered, Microkernel, Event-Driven, Pipeline, Space-Based, Microservices, Service-Oriented, Service-Based, Serverless, LMAX

Software Architecture

        > with Neil Ford & Mark Richards

Architecture is the highest level concept of the expert developers.

"In most successful software projects, the experts developers working on that project have a shared understanding of the system design. This shared understanding is called 'architecture'. This understanding includes how the system is divided into components and how the components interact through interfaces. These components are usually composed of smaller components, but the architecture only include the components and interfaces that are understood by all the developers."

@zmts
zmts / tokens.md
Last active November 14, 2024 12:13
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@vasanthk
vasanthk / System Design.md
Last active November 14, 2024 11:31
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?
@mrluanma
mrluanma / api.example.net.conf
Created September 9, 2014 08:27
cache POST request with Nginx
upstream api_example_net {
server api.example.net:4000;
keepalive 600;
}
proxy_cache_path /var/cache/nginx/tag levels=1:2 keys_zone=tag:10m inactive=1d max_size=10g;
server {
listen 80;
server_name api.example.net;
@Hardtack
Hardtack / crontab.py
Created April 14, 2014 04:41
crontab-like python scheduler
""":mod:`crontab` --- Quick-and-dirty linux crontab-like event scheduler.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can schedule tasks like this::
import datetime
import crontab
def o_clock():