Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
Parsing benchmark duration (ms) | Text (ideal syntax parsing heuristics) | Text (full parsing) | Pure syntax parsing | Binary | Binary vs ideal syntax parsing heuristics | Binary vs full parsing | Binary vs pure syntax parsing | |
---|---|---|---|---|---|---|---|---|
frameworks/angular.1.6.5 | 1106 | 1061 | 1240 | 671 | 0.61 | 0.63 | 0.54 | |
frameworks/backbone.1.3.3 | 135 | 138 | 105 | 76 | 0.56 | 0.55 | 0.72 | |
frameworks/bootstrap.4.1.0 | 242 | 242 | 198 | 150 | 0.62 | 0.62 | 0.76 | |
frameworks/chart.2.7.2 | 844 | 852 | 703 | 533 | 0.63 | 0.63 | 0.76 | |
frameworks/ember.2.18.2 | 2583 | 2392 | 2155 | 1673 | 0.65 | 0.70 | 0.78 | |
frameworks/foundation.6.4.3 | 659 | 652 | 544 | 427 | 0.65 | 0.65 | 0.78 | |
frameworks/jquery.3.3.1 | 644 | 521 | 415 | 322 | 0.50 | 0.62 | 0.78 | |
frameworks/moment.2.22.1 | 283 | 292 | 233 | 184 | 0.65 | 0.63 | 0.79 | |
frameworks/react-dom.production.16.3.2 | 493 | 498 | 409 | 294 | 0.60 | 0.59 | 0.72 |
version: "3" | |
services: | |
vpn: | |
image: hwdsl2/ipsec-vpn-server | |
env_file: | |
- ./vpn.env | |
ports: | |
- "500:500/udp" | |
- "4500:4500/udp" |
#!/bin/bash | |
# Load balance multiple internet connections. Requires iproute2, awk and grep. | |
# (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
# Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
# Not much user error checking is done - only pass working network connections | |
# script needs root to work and at least two interfaces to be useful | |
[ $EUID -eq 0 -a $# -ge 2 ] || { | |
echo "Usage (as root): $0 iface1[:weight1] iface2[:weight2] ..." >&2 |
<?php | |
$db = new PDO( | |
"pgsql:dbname=postgres host=localhost port=5432", 'postgres', 'postgres', [ | |
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, | |
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, | |
] | |
); | |
$db->exec('LISTEN hoge'); |
# vim: set ft=python: | |
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 | |
# source: https://github.com/mpv-player/mpv/issues/2149 | |
# source: https://github.com/mpv-player/mpv/issues/566 | |
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy | |
import vapoursynth | |
core = vapoursynth.get_core() |
// NOTICE 2020-04-18 | |
// Please see the comments below about why this is not a great PRNG. | |
// Read summary by @bryc here: | |
// https://github.com/bryc/code/blob/master/jshash/PRNGs.md | |
// Have a look at js-arbit which uses Alea: | |
// https://github.com/blixt/js-arbit | |
/** |