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
#!/bin/bash | |
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password | |
# Updated to work with Vagrant 1.3.x | |
# Stage updated sudoers in a temporary file for syntax checking | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. |
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
#!/bin/sh | |
# size of swapfile in megabytes | |
swapsize=512 | |
# does the swap file already exist? | |
grep -q "swapfile" /etc/fstab | |
# if not then create it | |
if [ $? -ne 0 ]; then |
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 options | |
pid = /var/run/hhvm/pid | |
; hhvm specific | |
hhvm.server.port = 9000 | |
hhvm.server.type = fastcgi | |
hhvm.server.default_document = index.php | |
hhvm.log.use_log_file = true |
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
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; |
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' => [ | |
'engine' => '1' | |
'short_open_tag' => '' | |
'precision' => '14' | |
'output_buffering' => '4096' | |
'zlib.output_compression' => '' | |
'implicit_flush' => '' | |
'unserialize_callback_func' => '' | |
'serialize_precision' => '17' |
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
return [ | |
'basePath' => dirname(__DIR__), | |
'bootstrap' => ['log'], | |
'controllerNamespace' => 'frontend\controllers', | |
'language' => 'en-AU', | |
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', | |
'extensions' => require(__DIR__ . '/../../vendor/yiisoft/extensions.php'), | |
'defaultRoute' => 'site/dashboard', | |
'components' => [ | |
'assetManager' => [ |
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
[ | |
0 => [ | |
'field_id' => '25' | |
'header' => 'Consumption Scaling' | |
'content' => '<p>Choose whether or not to scale the consumption profile of your customer.</p> | |
' | |
'created_at' => '2015-08-19 03:44:37' | |
'updated_at' => '2015-08-19 03:44:37' | |
] | |
1 => [ |
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 yii\helpers\Html; | |
use yii\grid\GridView; | |
/* @var $this yii\web\View */ | |
/* @var $searchModel app\models\search\CustomerSearch */ | |
/* @var $dataProvider yii\data\ActiveDataProvider */ | |
$this->title = 'Customers'; |
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 app\models\search; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Customer; | |
use yii\db\Expression; |
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 app\models\search; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Client; | |
use yii\db\Expression; |
OlderNewer