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
| /** | |
| * Asset Url | |
| * @return string | |
| */ | |
| function au() | |
| { | |
| static $url; | |
| if ($url) | |
| return $url; | |
| return $url = app()->getAssetManager()->publish(ap(), false, 1, YII_DEBUG); |
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 | |
| /** | |
| * | |
| * @package app.controller | |
| */ | |
| class TestController extends WebController | |
| { | |
| /** | |
| * |
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 | |
| /** | |
| * Cache class | |
| * | |
| * @author Brett O'Donnell - cornernote@gmail.com | |
| * @copyright 2013, All Rights Reserved | |
| * | |
| */ | |
| class cache | |
| { |
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 | |
| # | |
| # File: pingi | |
| # | |
| # Purpose: Ping Improved. Actually just handles better the timeout/unreachable. | |
| # | |
| # Author: BRAGA, Bruno <bruno.braga@gmail.com> | |
| # | |
| # Copyright: | |
| # |
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 | |
| $mepsenses = new MepSense('search'); | |
| $mepsenses->wordid = $data->wordid; | |
| $mepsensesDataProvider = $mepsenses->search(); | |
| $this->widget('zii.widgets.CListView', array( | |
| 'dataProvider'=>$mepsensesDataProvider, | |
| 'itemView'=>'_senses', | |
| )); |
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
| <VirtualHost *:80> | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot PATH | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride All | |
| </Directory> | |
| <Directory PATH > | |
| Options Indexes FollowSymLinks MultiViews |
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
| /** | |
| * Initializes the audit module. | |
| */ | |
| public function init() | |
| { | |
| parent::init(); | |
| // setup paths | |
| Yii::setPathOfAlias('audit', dirname(__FILE__)); | |
| $this->setImport(array( |
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
| class MyModel extends CActiveRecord | |
| { | |
| public function relations() | |
| { | |
| return array( | |
| 'parent' => array( | |
| self::BELONGS_TO, | |
| 'MyModel', | |
| 'parent_id', |
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
| /** | |
| * AssetManager | |
| * | |
| * @author Brett O'Donnell <cornernote@gmail.com> | |
| * @copyright 2013 Mr PHP | |
| * @license BSD-3-Clause | |
| */ | |
| class AssetManager extends CAssetManager | |
| { |
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
| gpg --list-keys | |
| /root/.gnupg/pubring.gpg | |
| ------------------------ | |
| pub 1024D/2D15CE4F 2014-01-28 | |
| uid root <root@dom.ain> | |
| sub 2048g/0B8C6ED2 2014-01-28 |