Skip to content

Instantly share code, notes, and snippets.

View fyapy's full-sized avatar
🏠
Working from home

Amir Abdullin fyapy

🏠
Working from home
View GitHub Profile
https://codepen.io/devstreak/pen/dMYgeO
\::-webkit-scrollbar-button
background-image: url('')
background-repeat: no-repeat
width: 6px
height: 0px
\::-webkit-scrollbar-track
background-color: #32312e
@zmts
zmts / tokens.md
Last active October 29, 2025 08:59
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@agragregra
agragregra / button.sass
Last active July 28, 2025 22:38
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
@popravich
popravich / PostgreSQL_index_naming.rst
Last active October 26, 2025 16:30
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
@yowu
yowu / HttpProxy.go
Last active October 29, 2025 09:20
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)