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
# bash установить права на файлы и папки только на чтение | |
find ./ -type f -exec chmod 444 {} \; | |
find ./ -type d -exec chmod 555 {} \; | |
# показать фоновые задания | |
jobs | |
# отвязать фоновые задания | |
disown |
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
# создать файл 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 <[email protected]>" --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
# 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
команда для запуска на опенсервере | |
`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
# 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
https://www.ndchost.com/wiki/cloudlinux/how-to-add-commands-to-cagefs-users | |
https://www.supportsages.com/add-commandbinary-cagefs/ | |
# Adding packages to CageFS users | |
cagefsctl --addrpm <packagename> | |
cagefsctl --force-update |
OlderNewer