Skip to content

Instantly share code, notes, and snippets.

View adrenalinkin's full-sized avatar
:octocat:
Enjoying the creation of something new

Viktor Linkin adrenalinkin

:octocat:
Enjoying the creation of something new
  • @comdi
  • Moscow
View GitHub Profile
@Slavenin
Slavenin / GraphController.php
Last active February 16, 2021 12:38
class dependency graph visualization in 3d space with threejs
<?php
namespace App\Http\Controller\Graph;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\Reader;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\ManyToOne;
@kryakozyablik
kryakozyablik / README.MD
Last active January 10, 2019 13:57
Run docker-compose for project

Install for Mac Os

make directory if not exists

mkdir ~/bin

add ~/bin to executable path

echo 'PATH=~/bin:$PATH' >> ~/.bash_profile

copy file ds to ~/bin and set executable chmod

chmod +x ~/bin/ds

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

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@ummahusla
ummahusla / git-overwrite-branch.sh
Last active May 20, 2024 16:27 — forked from brev/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of feature branch (feature > master)
git checkout feature # source name
git merge -s ours master # target name
git checkout master # target name
git merge feature # source name
@mehlah
mehlah / gitmodules.sh
Created July 2, 2012 00:27
Batch git submodule add
#!/bin/sh
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
url_key=$(echo $path_key | sed 's/\.path/.url/')
url=$(git config -f .gitmodules --get "$url_key")
git submodule add $url $path