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
| # Яндекс Браузер в Ubuntu 26.04 не воспроизводит HLS-видео: Ffmpeg not found / libffmpeg.so — решение | |
| Короткая памятка для Ubuntu 26.04. | |
| Ситуация: Яндекс Браузер открывает страницу с HLS-видео, плеер отображается, поток вроде пытается загрузиться, но вместо картинки появляется ошибка про отсутствующий видеокодек. | |
| Например: | |
| ```text | |
| Отсутствует видеокодек. |
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
| ```sql | |
| CREATE USER 'login'@'localhost' IDENTIFIED BY 'pass'; | |
| GRANT SELECT,UPDATE,INSERT ON dbname.* TO 'login'@'localhost'; | |
| GRANT ALL PRIVILEGES ON dbname.* TO 'login'@'localhost'; | |
| FLUSH PRIVILEGES; | |
| ``` | |
| Если: An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client | |
| То: ALTER USER 'zabbix_yurchenko'@'localhost' IDENTIFIED WITH mysql_native_password BY 'zabbix_yurchenko'; |
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 repository | |
| ```bash | |
| curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}' | |
| ``` | |
| Add remote repo in the local project | |
| ```bash | |
| git remote add origin git@github.com:USER/REPO.git |
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
| > Если при перезапуске, старте или остановке Mariadb зависает на [Notice] Waiting for page_cleaner, то необходимо в консоле прописать: | |
| https://forum.manjaro.org/t/computer-does-not-shut-down-because-of-mariadb/81565/8 | |
| ```bash | |
| timedatectl set-local-rtc 1 | |
| ``` | |
| или |
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
| Если при открытие текстовыхъ файлов в редакторе gedit, появляются знаки вопроса вместо текста необходимо: | |
| 1) В консоли: | |
| gsettings set org.gnome.gedit.preferences.encodings candidate-encodings "['UTF-8', 'WINDOWS-1251', 'CURRENT', 'ISO-8859-15', 'UTF-16']" | |
| или | |
| 20 Установить dconf(sudo apt-get install dconf-tools), перейти в '/org/gnome/gedit/preferences/encodings/' и добавить: | |
| 'UTF-8','WINDOWS-1251','CURRENT','ISO-8859-15','UTF-16' |
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
| Resolve: | |
| chmod -R guo+w storage | |
| php artisan cache:clear |
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
| /etc/mysql/ | |
| my.conf | |
| Add to appropriate sections: | |
| [mysqld] | |
| character-set-server=utf8 | |
| collation-server=utf8_general_ci | |
| init-connect="SET NAMES utf8" |
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
| 1. cd path/to/project-B | |
| 2. git remote add project-a path/to/project-A | |
| 3. git fetch project-A | |
| 4. git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge | |
| 5. git remote remove project-A #опционально, если удалить репу коммиты остануться - названия веток нет. |
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
| // "Подсвечиваем" выбранный метод доставки (добавляем класс .shipping-method--active) | |
| // #simplecheckout_shipping - ближайщий статический элемент, который не изменяется при выполнение aJax | |
| var activeInputShippingMethod = $('.shipping-method').find('input:checked'); | |
| var activeShippingMethod = activeInputShippingMethod.parents('.shipping-method'); | |
| activeShippingMethod.toggleClass('shipping-method--active'); | |
| $('#simplecheckout_shipping').on('change', '.shipping-method', function () { | |
| function lazySelectActiveItem_ShippingMethod(){ | |
| var activeInputShippingMethod = $('.shipping-method').find('input:checked'); | |
| var activeShippingMethod = activeInputShippingMethod.parents('.shipping-method'); |
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
| <?php | |
| private function exists($newEmployee) | |
| { | |
| foreach ($this->products as $product) { | |
| if ($product === $newEmployee) { // сравниваем через === | |
| return true; | |
| } | |
| } | |
| return false; | |
| } |
NewerOlder