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
{"ignition":{"config":{},"timeouts":{},"version":"2.1.0"},"networkd":{},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDF/SQhH7qOjqeF+OuS2iGEsBnpFjkc+031vdM6UU4lUwYXkLr0tUqmB3LcPiAax55e56ELuJO1wlAI7SMvZZ+dfGoCDv/z4GMN4pscxWd1FmzJBNBsKSGJKc/qswMbunwBC8H9dPa3YrVZXO00D9fcatA9VuyImiRai6Q87sGuKBPo4dNfMZfTZjUfglzydyJm8valewdd6gWwif2uX+N3SM0bLeuUncpF00PdBMWPljrJDBUVjYOudt8R9sXflldxcB+ggs3YlKVc+28+stFDwpT67AOOypSOcz/VMSpIciJXEGIn4ziAHiwA8rCNg+0IjF4OUEWdqqfG3DRWc1LR [email protected]"]}]},"storage":{"files":[{"filesystem":"root","group":{},"path":"/etc/coreos/update.conf","user":{},"contents":{"source":"data:,GROUP%3Dstable%0ASERVER%3Dhttps%3A%2F%2Fpublic.update.core-os.net%2Fv1%2Fupdate%2F","verification":{}},"mode":420}]},"systemd":{"units":[{"dropins":[{"contents":"[Service]\nEnvironment=\"ETCD_IMAGE_TAG=v3.2.18\"\nExecStart=\nExecStart=/usr/lib/coreos/etcd-wrapper $ETCD_OPTS \\\n --discovery=\"https://discovery.etcd.io/2d3d6e80944b0e219036dd8b34aef889\" |
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 | |
/** | |
* To run the code, use the following link: | |
* @link http://sandbox.onlinephpfunctions.com/code/c0c3b9e0f3df2aa3f1251594dc09282e5aabf5fc | |
* | |
* Please do not use this in PRODUCTION systems! | |
*/ | |
/** |
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
/** | |
* @param $url | |
*/ | |
public function actionStreamVideoFromCdn($url) | |
{ | |
$headersCollection = Yii::$app->request->getHeaders(); | |
$responseHeaders = []; | |
$chInfo = curl_init(); | |
curl_setopt($chInfo, CURLOPT_URL, $url); |
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
class User extends ActiveRecord | |
{ | |
/** | |
* @var StatusEnum | |
*/ | |
private $_statusEnum; | |
/** | |
* BaseUser constructor. | |
* @param StatusEnum $statusEnum |
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
/** | |
* Class BaseEnum. | |
*/ | |
abstract class BaseEnum | |
{ | |
/** | |
* Get All Labels | |
* @return array | |
*/ | |
public static function getLabels(): array |
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 | |
namespace dashboard\controllers; | |
use dashboard\extensions\Controller; | |
use dashboard\forms\CompanyDeliveryMethodsSearchForm; | |
use dashboard\forms\CompanyOrderStatusesSearchForm; | |
use dashboard\forms\CompanyPaymentMethodsSearchForm; | |
use dashboard\forms\CompanyPhotoDeleteForm; | |
use dashboard\forms\CompanyPhotoForm; |
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
/** | |
* Class Controller | |
* @package backend\extensions | |
*/ | |
class Controller extends \voskobovich\crud\controllers\Controller | |
{ | |
/** | |
* @return array | |
*/ | |
public function actions() |
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. Open document | |
2. Crtl + R | |
3. Checked Regexp | |
4. Find \$(.+)(\w)_(\w) | |
5. Replace to \$$1$2\u$3 | |
6. Unchecked Regexp | |
7. Profit! |
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
# Layout Pjax Begin | |
--------vew begin---------- | |
# View Pjax Begin | |
# Menu | |
# View Pjax End | |
# View Pjax Begin | |
# GridView | |
# View Pjax End |
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
class UrlManager extends \yii\web\UrlManager | |
{ | |
/** | |
* @inheritdoc | |
*/ | |
public function createUrl($params) | |
{ | |
//Получаем сформированный URL(без префикса идентификатора языка) | |
$url = parent::createUrl($params); |
NewerOlder