Skip to content

Instantly share code, notes, and snippets.

View sauron918's full-sized avatar

Serhii Nahorets sauron918

View GitHub Profile
@neochief
neochief / .zshrc
Last active September 2, 2019 10:52
Fast XDEBUG on/off switches
# Paste thing whole thing to your ~/.bashrc or ~/.zhrc
# Make sure all the variables on top point to correct
# destinations in your system. This all works under MacOS,
# bu should be easily adjusted for Ubuntu (you'll need to
# replace the PHP restart comands at the end).
#
# Quick reference:
#
# xon : enables xdebug, disables blackfire, disables opcache
# xoff : disables xdebug, enables blackfire, enables opcache
@zmts
zmts / tokens.md
Last active September 18, 2024 17:08
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@jgrodziski
jgrodziski / docker-aliases.sh
Last active August 23, 2024 05:38
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@technetium
technetium / .Propagating-awareness-via-ManyToOne-associations.md
Created April 14, 2016 07:47
Propagating awareness via ManyToOne associations

Propagating awareness via ManyToOne associations

Introduction

Michaël Perrin has written an article about using annotation and filters improve security.

With a more complex model, for example an order that contains products, you want also to filter on the associations of the filtered entity.

@dylancwood
dylancwood / tree.css
Last active August 2, 2024 04:06
CSS to create a simple tree structure with connecting lines. No images or JS required.
ul.tree, ul.tree ul {
list-style: none;
margin: 0;
padding: 0;
}
ul.tree ul {
margin-left: 10px;
}
ul.tree li {
margin: 0;