sed -e '0,/get_footer/s#.*get_footer.*#вставляемый текст\n&#' /var/www/site.ru/index.php
grep "тут твоя строка которую нужно добавить" /var/www/site.ru/index.php || sed -e '0,/get_footer/s#.*get_footer.*#вставляемый текст\n&#' /var/www/site.ru/index.php
nvm --help
в примерах.nvm alias default 14.22.1
Установил nvm таким способом ...
paru -S nvm
...
You need to source nvm before you can use it. Do one of the following
or similar depending on your shell (and then restart your shell):
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc
You can now install node.js versions (e.g. nvm install 10) and
activate them (e.g. nvm use 10).
init-nvm.sh is a convenience script which does the following:
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec
You may wish to customize and put these lines directly in your
.bashrc (or similar) if, for example, you would like an NVM_DIR
other than ~/.nvm or you don't want bash completion.
Поддержка с сервера написала, что нужно ждать до сутки, неужели это правда?
рядом с папкой сайта site.com, создал папку test.site.com
public function wantsJson()
{
$acceptable = $this->getAcceptableContentTypes();
return isset($acceptable[0]) && Str::contains(strtolower($acceptable[0]), ['/json', '+json']);
}
LEFT seek -1
RIGHT seek +1
mpv --hr-seek=yes --hr-seek-framedrop=no /путь/к/видео
hr-seek=yes
hr-seek-framedrop=no