Skip to content

Instantly share code, notes, and snippets.

@zmts
zmts / tokens.md
Last active April 27, 2025 21:01
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@styblope
styblope / docker-api-port.md
Last active April 24, 2025 13:32
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@Hedgehogues
Hedgehogues / gist:123eb27100608d248cf8370e666b29ce
Last active July 12, 2024 19:27
JetBrains Reset for 30-days-trial
#!/bin/bash
# https://gist.github.com/Hedgehogues/123eb27100608d248cf8370e666b29ce/
# declare array of tools
declare -a tools=(
"DataGrip"
"CLion"
"Rider"
"WebStorm"
"GoLand"
@dstrebkov
dstrebkov / gcc-install-from-sources.sh
Last active March 2, 2025 08:35
GCC 12 or GCC 13 install from sources
#!/bin/bash
########################################################################################
# GCC 12 and GCC 13 installer:
# - checks out GCC sources from official GCC Git repo;
# - builds them and installs GCC binaries to $HOME/opt/gcc-x.y.z location
#
# Installed languages are: C/C++, Fortran and Go
#
# Prerequisites: Flex version 2.5.4 (or later) and tools & packages listed in