mix.browserSync({
proxy: 'localhost:8080',
files: [
'index.html',
]
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 | |
| namespace App\Http\Middleware; | |
| use Filament\Facades\Filament; | |
| use Filament\Models\Contracts\FilamentUser; | |
| use Illuminate\Auth\Middleware\Authenticate as Middleware; | |
| use Illuminate\Support\Facades\Session; | |
| class RedirectIfNotFilamentAdmin extends Middleware |
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
| NUTNET_SMS_PROVIDER=log | |
| #NUTNET_SMS_PROVIDER=smsru |
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
| mysql -u root -p | |
| CREATE DATABASE testing; | |
| GRANT ALL PRIVILEGES ON testing.* TO test_user@localhost IDENTIFIED BY 'test_pass'; | |
| 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
| Используйте sortable() для столбцов, указывающих на отношение "один ко многим" | |
| https://v2.filamentphp.com/tricks/use-sortable-on-columns-pointing-to-one-to-many-relationship | |
| Создание макроса всплывающей подсказки | |
| https://v2.filamentphp.com/tricks/create-a-tooltip-macro |
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
| Лекторий ФПМИ: | |
| Highload (4 курс, весна 2022) - Бунин О. В. | |
| https://www.youtube.com/playlist?list=PL4_hYwCyhAva6-f-YxobKju-6ltmn-jNC | |
| HighLoad Channel: | |
| Паттерны отказоустойчивой архитектуры – Александр Кривощёков | |
| https://www.youtube.com/watch?v=YlXJMCdssAI |
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] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
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 | |
| aptitude -y install expect | |
| // Not required in actual script | |
| MYSQL_ROOT_PASSWORD=abcd1234 | |
| SECURE_MYSQL=$(expect -c " | |
| set timeout 10 |
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
| #update and install some dependencies | |
| sudo apt-get update && apt-get upgrade -y; | |
| sudo apt-get install -y debconf-utils zsh htop libaio1; | |
| #set the root password | |
| DEFAULTPASS="rootpass" | |
| #set some config to avoid prompting | |
| sudo debconf-set-selections <<EOF | |
| mysql-apt-config mysql-apt-config/select-server select mysql-8.0 |
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
| FROM python:3.7.4-buster | |
| ADD . /app | |
| WORKDIR /app | |
| RUN python -m venv venv | |
| RUN venv/bin/pip install --upgrade pip | |
| RUN venv/bin/pip install -r requirements.txt | |