Skip to content

Instantly share code, notes, and snippets.

View AlexGx's full-sized avatar

Alexander Gubarev AlexGx

View GitHub Profile
@believer-ufa
believer-ufa / progress.js
Last active February 27, 2019 11:01
Простой способ запустить прогресс-бар тогда, когда пройдёт пара секунд
Progress = new function() {
this.progressStartTimer = null; // ИД таймера старта прогресс-бара
this.time = 800; // Через сколько милисекунд отобразить прогресс-бар
this.clear = function() {
if (this.progressStartTimer != null) {
clearTimeout(this.progressStartTimer);
}
};
this.start = function() {
this.clear();
@mat
mat / Readme.markdown
Last active April 28, 2025 01:44
apple-app-site-association —with examples

“apple-app-site-association” file

One file for each domain, both www.example.com and example.com need separate files:

{
    "applinks": {
        "apps": [],
        "details": {
 "9JA89QQLNQ.com.apple.wwdc": {
@tom--
tom-- / Random bytes, ints, UUIDs in PHP.md
Last active July 10, 2025 16:41
PHP random bytes, integers and UUIDs

Random bytes, ints, UUIDs in PHP

Simple and safe random getters to copy-paste

string randomBytes( int $length )

int randomInt ( int $min , int $max )

string randomUuid ( void )
@shadz3rg
shadz3rg / gost_engine.sh
Created October 15, 2018 11:19
Настройка ГОСТ OpenSSL под Ubuntu 18.04
# Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86_64)
# (из коробки) OpenSSL 1.1.0g 2 Nov 2017
# (из коробки) curl 7.58.0 (x86_64-pc-linux-gnu)
# PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
# Компилим GOST-engine
sudo apt install cmake libssl-dev
git clone --branch=openssl_1_1_0 https://github.com/gost-engine/engine.git gost-engine/engine
cd gost-engine/engine
cmake .
@rybakit
rybakit / bench_swoole.php
Last active December 29, 2021 10:54
tarantool/client swoole
<?php
/**
* This file is part of the Tarantool Client package.
*
* (c) Eugene Leonovich <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/