This file contains hidden or 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
--- | |
# Nginx vHost Template defintion for vhost-gen.py | |
# | |
# The 'feature' section contains optional features that can be enabled via | |
# conf.yml and will then be replaced into the main vhost ('structure' section) | |
# into their corresponding position: | |
# | |
# __XDOMAIN_REQ__ | |
# __PHP_FPM__ |
This file contains hidden or 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
# devilbox: docker-compose.override.yml | |
version: '2.3' | |
services: | |
clickhouse: | |
image: yandex/clickhouse-server | |
networks: | |
app_net: | |
ipv4_address: 172.16.238.2 | |
ports: |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- This is a skeleton phpDox config file - Check http://phpDox.de for latest version and more info --> | |
<phpdox xmlns="http://xml.phpdox.net/config" silent="false"> | |
<!-- @silent: true | false to enable or disable visual output of progress --> | |
<!-- Additional bootstrap files to load for additional parsers, enrichers and/or engines --> | |
<!-- Place as many require nodes as you feel like in this container --> | |
<!-- syntax: <require file="/path/to/file.php" /> --> | |
<bootstrap /> |
This file contains hidden or 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
#!/bin/sh | |
rm -rf "$(pwd)/docs" | |
phpmd ./src xml cleancode,codesize,controversial,design,naming,unusedcode > "$(pwd)/build/pmd.xml" | |
phpcs ./src --report-xml="$(pwd)/packages/bitcoin/build/phpcs.xml" | |
phploc ./src --log-xml="$(pwd)/build/phploc.xml" | |
phpdox && git add --all docs && git commit -m "Автоматическое обновление документации phpdox" |
This file contains hidden or 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
$redis = new Redis(); | |
$redis->pconnect('127.0.0.1', 33379); | |
/** | |
* @param $redis | |
* @param string $mask | |
* @param $callback | |
* | |
* @return array|bool | |
*/ |
This file contains hidden or 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
CREATE DATABASE IF NOT EXISTS dbname; | |
GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@'localhost' IDENTIFIED BY 'dbpassword'; | |
FLUSH PRIVILEGES; |
This file contains hidden or 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
#!/bin/bash | |
EXPECTED_ARGS=3 | |
E_BADARGS=65 | |
MYSQL=`which mysql` | |
Q1="CREATE DATABASE IF NOT EXISTS $1;" | |
Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';" | |
Q3="FLUSH PRIVILEGES;" | |
SQL="${Q1}${Q2}${Q3}" |
This file contains hidden or 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
git filter-branch --commit-filter 'export GIT_AUTHOR_NAME="author" ; export [email protected]; git commit-tree "$@"' |
This file contains hidden or 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
TAGS | |
.projectile | |
\#* | |
*~ | |
.#* | |
\#*\# |
This file contains hidden or 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
/* | |
* автоматом отмечает значения, которые пришли в переменных GET | |
* запрос - строка вида worktype=100&second=35 | |
* | |
* Здесь: | |
* worktype - имя и значение option основного селекта | |
* second - имя и значение option зависимого (второго) селекта | |
*/ | |
$.fn.extend({ |
NewerOlder