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 echo $form->field($model, '####')->widget( | |
| MultipleInput::className(), | |
| [ | |
| 'max' => 6, | |
| // should be at least 2 rows | |
| 'allowEmptyList' => false, | |
| 'enableGuessTitle' => true, | |
| 'addButtonPosition' => MultipleInput::POS_HEADER // show add button in the header | |
| ]) |
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
| ///Work Machine | |
| sudo apt install chromium-browser | |
| ///LAMP | |
| sudo apt -y update && sudo apt -y upgrade && sudo apt -y install lamp-server^ && sudo apt -y install phpmyadmin | |
| ///phpmyadmin | |
| sudo ln -s /usr/share/phpmyadmin /var/www/html | |
| ///need ext for server in php | |
| sudo apt-get install php7.0-intl | |
| sudo apt-get install php7.0-mbstring |
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
| ##################################### | |
| ///for phpstorm | |
| sudo apt-get purge openjdk* | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer | |
| ///download phpstorm off site | |
| ///переносим скачанный архив в папку /opt/. |
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
| alias www="cd / && cd var/www/html" && alias nx="cd / && cd etc/nginx" && alias cf="cd / && cd var/www/html/fgos/frontend/config" |
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
| sudo apt-get update | |
| sudo apt-get install nginx | |
| nginx -v | |
| sudo apt-get install mysql-server | |
| sudo mysql_secure_installation | |
| sudo systemctl status mysql | |
| mysql --version | |
| sudo apt-get install php php-cli php-fpm php-mysql |
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
| public function actionNewAddons() | |
| { | |
| \Yii::$app->response->format = Response::FORMAT_JSON; | |
| $item = new TypeCarAddons(); | |
| $item->loadDefaultValues(); | |
| return [ | |
| 'success' => 1, | |
| 'data' => $this->renderPartial('partial/update/_addons_item', ['form' => new ActiveForm(), 'item' => $item, 'key' => uniqid()]) | |
| ]; | |
| } |
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
| #удаляем nginx и все связанные пакеты | |
| sudo apt-get remove nginx* | |
| #удаляем рабочие директории и логи | |
| sudo rm -rf /etc/nginx/ /usr/sbin/nginx /usr/share/man/man1/nginx.1.gz | |
| #удаляем остатки nginx из базы apt | |
| sudo apt-get --purge autoremove nginx && sudo dpkg --purge nginx | |
| #устанавливаем nginx заново с чистыми конфигами |
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
| sudo ln -s /etc/nginx/sites-available/phpmyadmin /etc/nginx/sites-enabled/ | |
| //cd /etc/nginx/sites-enabled/ | |
| //ln -s /etc/nginx/sites-available/yourdomain yourdomain |
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
| array_rand, disk_free_space, file_get_contents, file_put_contents, filter_var, | |
| htmlspecialchars, import_request_variables, localeconv, number_format, parse_ | |
| url, strip_tags, wordwrap |
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
| jpegoptim *.jpg | |
| optipng *.png |