Skip to content

Instantly share code, notes, and snippets.

🎩
with brim a hat to cover your face in moments of anger

Nikolay Bondarenko misterion

🎩
with brim a hat to cover your face in moments of anger
Block or report user

Report or block misterion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View protocol_one_cla.txt
### Protocol One Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Protocol One
or its affiliates. This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code,
object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information
or other works of authorship that you submit or have submitted, in any form and in any manner, to Protocol One in respect
of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact
opensource@protocol.one.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses
@misterion
misterion / SAP_CLA
Created Dec 11, 2019 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
View SAP_CLA
### SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwi
@misterion
misterion / tokens.md
Created Oct 9, 2018 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication
View tokens.md

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

Preconditions:

В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)

Основы:

Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.

Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.

@misterion
misterion / gist:b8f3731dd635017044c91ae34410164d
Created Nov 10, 2016
Selectel private cloud backup script
View gist:b8f3731dd635017044c91ae34410164d
#!/bin/bash
export OS_AUTH_URL="https://api.selvpc.ru/identity/v3"
export OS_IDENTITY_API_VERSION="3"
export OS_VOLUME_API_VERSION="2"
export OS_PROJECT_DOMAIN_NAME='PUT YOUR DATA HERE'
export OS_PROJECT_ID='PUT YOUR DATA HERE'
export OS_TENANT_ID='PUT YOUR DATA HERE'
export OS_REGION_NAME='ru-1'
@misterion
misterion / output.txt
Created Jan 4, 2016
Gist from "Under the Hood of Redis: Hash [Part 2] & List"
View output.txt
config set hash-max-ziplist-entries 1
+OK
config set hash-max-ziplist-value 1000000
+OK
flushall
+OK
info memory
$225
# Memory
used_memory:508536
View gist:c0cb0d12fc5d246740e1
<?php
$ip = '192.168.1.17';
$port = 5000;
$dbname = 'users';
$user = 'sa';
$password = 'sa';
$totalCount = 1000;
@misterion
misterion / gist:85c5d6cb32e4ddd487ce
Created Dec 16, 2015
Test freetds connection speed
View gist:85c5d6cb32e4ddd487ce
<?php
$ip = '192.168.1.17';
$port = 5000;
$dbname = 'users';
$user = 'sa';
$password = 'sa';
$totalCount = 1000;
View redis_hash_test.php
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('max_execution_time', 0);
ini_set('memory_limit', '3072M');
$hashWrite = /** @lang Lua */ <<<LUA
for i = 0, ARGV[1], 1 do
redis.call('hset', 'test', i, i);
end
You can’t perform that action at this time.