This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
doc('Функция генерирующая докблоки и записывающая их в файл (умеет грамотно обновлять файл)'); | |
param('Имя файла, куда нужно сохранять данные','string'); | |
param('Затереть ли файл? default=false','boolean'); | |
def('docBlockGen',function($filename, $overWrite=false) | |
{ | |
//Исходный контент добавляемый в файл при создании. | |
$content = '<?php | |
//Здесь находятся док-блоки для всякого разного - сгенерированные генератором :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server | |
{ | |
#redirect to https: | |
listen *:80; | |
server_name website.local; | |
return 301 https://$host/$1; | |
} | |
server | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
use epoll; | |
worker_connections 1024; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[www] | |
user = developer | |
group = developer | |
listen = 127.0.0.1:9999; | |
listen.owner = www-data | |
listen.group = www-data | |
listen.mode = 0666 | |
pm = dynamic | |
pm.max_children = 10 | |
pm.start_servers = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so" | |
[debug] | |
xdebug.auto_trace=0 | |
xdebug.collect_includes=1 | |
xdebug.collect_params=1 | |
xdebug.collect_return=0 | |
xdebug.extended_info=1 | |
xdebug.show_local_vars=1 | |
xdebug.show_mem_delta=1 | |
xdebug.max_nesting_level=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Нечеткое сравнение строк | |
* @param первая строка $str1 | |
* @param вторая строка $str2 | |
* @param минимальный кусочек интервала сравнения $minSize | |
* @param максимальный кусочек интервала сравнения $maxSize - если равен 0, то будет задан автоматически | |
* @param string $encoding кодировка текста (обычно - utf-8) | |
* @return float число от 0 до 1 - процент совпадения. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Класс-хелпер для множества разных полезных функций. Название выбрано так, чтобы пользоваться можно было максимально быстро | |
*/ | |
class H | |
{ | |
/** | |
* Необязательный запуск чего-либо |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Построить хэш изображения для быстрого сравнения схожести изображений. | |
* Позволяет быстро определять схожесть изображений, которые являются одним | |
* и тем-же изображением, но, например, с изменённым размером и пропорциями, | |
* или с немного подкорректированными цветами. | |
* Длина хэша в байтах равна квадрату параметра $hashSizeRoot, правда хэш на выходе преобразуется в base64, | |
* поэтому он занимает на 25% больше. | |
* | |
* @param string $imageFileContent Содержимое файла изображения |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CryptoTable | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://bitinfocharts.com/ru/markets/ | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e) | |
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) | |
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 0e) | |
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 0e) | |
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e) | |
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e) | |
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0e) | |
00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 (rev 0e) | |
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 0e) | |
00:1d.0 USB controller: Intel Corporation Atom Proce |
OlderNewer