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 common\helpers; | |
use yii\base\UnknownPropertyException; | |
use yii\helpers\ArrayHelper; | |
/** | |
* @author Arleigh Dickerson | |
* |
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 | |
use ProxyManager\Factory\AccessInterceptorValueHolderFactory; | |
use React\ChildProcess\Process; | |
use React\EventLoop\LoopInterface; | |
use React\Filesystem\Filesystem; | |
use React\Filesystem\FilesystemInterface; | |
use React\Promise\PromiseInterface; | |
Yii::$container |
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
"xte 'keydown Super_L' 'key w' 'keyup Super_L'" | |
b:8 | |
"xte 'keydown Return' 'keyup Return'" | |
release+b:8 | |
"xte 'keydown Super_L' 'key s' 'keyup Super_L'" | |
b:2 |
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 console\controllers; | |
use Yii; | |
use yii\console\Controller; | |
use yii\helpers\Json; | |
use yii\helpers\FileHelper; |
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 | |
/** | |
* A trait to add silent prompts to Yii2 Console Controller | |
* Requires bash shell | |
*/ | |
trait SilentPromptingTrait { | |
/** | |
* @see http://www.dzone.com/snippets/password-prompt-php | |
* Interactively prompts for input without echoing to the terminal. | |
* Requires a bash shell and won't work with safe_mode settings (Uses `shell_exec`) |
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
--============================================================================== | |
-- seamod_rings.lua | |
-- | |
-- Date : 05/02/2012 | |
-- Author : SeaJey | |
-- Version : v0.1 | |
-- License : Distributed under the terms of GNU GPL version 2 or later | |
-- | |
-- This version is a modification of lunatico_rings.lua wich is modification of conky_orange.lua | |
-- |
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 console\controllers; | |
use yii\helpers\StringHelper; | |
use yii\console\Controller; | |
use Yii; | |
abstract class SimulationController extends Controller { | |
public $defaultAction = 'default'; |
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 common\helpers; | |
use yii\base\InvalidParamException; | |
use yii\helpers\Json; | |
use yii\helpers\Url; | |
class ClientUrls { |
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
echo 8589934590 > /proc/sys/kernel/shmmax | |
echo 4096 > /proc/sys/vm/nr_hugepages | |
exit 0 |
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 common\components; | |
use Aws\S3\S3Client; | |
use yii\caching\Cache; | |
use yii\helpers\ArrayHelper; | |
class S3Cache extends Cache { |