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
# создать файл mbstring.inc.txt в папке /etc/apache2/vhosts/USER | |
<Directory /var/www/USER/data/www/SITE.RU> | |
php_admin_value mbstring.func_overload 2 | |
php_admin_value mbstring.internal_encoding utf-8 | |
# или | |
#php_admin_value mbstring.func_overload 0 | |
#php_admin_value mbstring.internal_encoding cp1251 | |
</Directory> | |
# тут можно задать другое правило для другого сайта данного пользователя |
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
# проверить корректность конфигов | |
$ apachectl configtest | |
# список загруженных модулей | |
$ apache2ctl -M |
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
# изменить автора коммита | |
1) в консоли начать ребейз | |
git rebase -i -p <some HEAD before all of your bad commits> | |
2) изменить автора каждому коммиту без открытия редактора | |
git commit --amend --author "Mark <mark@artw.ru>" --no-edit && git rebase --continue | |
Заметка: | |
пхпшторм при интерактивном ребейзе не меняем автора коммита. или я не понял, как это сделать. | |
--- |
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
# сервис для выполнения запросов | |
https://www.hurl.it/ | |
# адрес для авторизации | |
/bitrix/admin/1c_exchange.php?mode=checkauth&type=catalog |
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
# Закрыть полностью админку битрикса | |
# /bitrix/.htaccess | |
# ---------------------------------- | |
# close all | |
Order allow,deny | |
Deny from all | |
# allow urlrewrite.php иначе не работает ЧПУ на сайте | |
<FilesMatch urlrewrite.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
# open server bash alias for composer with php 5.6-x64 | |
alias composer="/d/OpenServer/modules/php/PHP-5.6-x64/php /d/OpenServer/modules/php/PHP-5.6-x64/composer.phar" | |
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
# exclude | |
--exclude=upload/resize_cache --exclude=upload/1c_catalog* --exclude="*.tar*" --exclude="*.zip*" --exclude="*.sql*" --exclude="*.log*" --exclude="bitrix/cache" --exclude=bitrix/backup --exclude=bitrix/html_pages --exclude=_logs | |
--exclude=upload |
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 vendor/robmorgan/phinx/bin/phinx migrate` | |
Если запускать, как указано в мануале | |
`vendor/bin/phinx migrate` | |
то на опенсервере не тот пхп интерпретатор подключается из батника, а там не подключен PDO_MYSQL модуль. | |
--- | |
# добавить в .bashrc |
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
# send any data to graylog server with http gelf protocol | |
# $1 - facility (info|warning|etc) | |
# $2 - application | |
# $3 - type | |
# $4 - short text (title) | |
# $5 - full text (body) | |
function send_to_graylog { | |
this_host="stage.np.ru" | |
graylog_http_gelf_host="IP:PORT" | |
msg='{"facility":"'$1'", "application":"'$2'", "type":"'$3'", "short_message":"'$4'", "full_message":"'$5'", "host":"'$this_host'"}' |
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
<? | |
// include core | |
/* | |
* создает новую форму и вопросы всех возможных типов | |
* */ | |
// у формы обязательно должен быть хоть один статус и один из них обязательно по умолчанию | |
// иначе не сохранить результат в админке или через стд компоненты | |
$status = new \Webform\Install\StatusBuilder(); | |
$status->add("Первый", true); |
OlderNewer