sudo npm cache clean -f sudo npm install -g n sudo n stable
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; | |
class ReverseController extends \yii\console\Controller | |
{ | |
public function actionMigrate() { | |
// $schema = $args[0]; | |
$tables = Yii::$app->db->schema->getTableSchemas(); |
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\chrome; | |
use DOMDocument; | |
/** | |
* Class ChromeAutoUpdate. | |
*/ | |
class ChromeAutoUpdate |
How to build with actual ICU version (tested on debian 8.2):
wget http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz tar xvzf icu4c-56_1-src.tgz cd icu/source ./configure --prefix=/opt/icu4c-php && make && make install
Add to php build config --with-icu-dir=/opt/icu4c-php
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
open /usr/local/etc/nginx | |
sudo discoveryutil mdnsflushcache |
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 | |
/** | |
* @param bool $short | |
* @return string | |
*/ | |
public function getContent($short = true) | |
{ | |
$body = $this->site_content; | |
// TODO: remove shortend |
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
SELECT engine, | |
count(*) as TABLES, | |
concat(round(sum(table_rows)/1000000,2),'M') rows, | |
concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, | |
concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx, | |
concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, | |
round(sum(index_length)/sum(data_length),2) idxfrac | |
FROM information_schema.TABLES | |
WHERE table_schema not in ('mysql', 'performance_schema', 'information_schema') | |
GROUP BY engine |
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
<table border="1"> | |
<tbody> | |
<tr> | |
<td>BLD (кровь)</td> | |
<td>{{#combobox}}-,+-,+,++,+++{{/combobox}}</td> | |
<td>{{#combobox}}отрицательно,(RBC/µL){{/combobox}} {{{textfield}}}</td> | |
</tr> | |
<tr> | |
<td>BIL (биллирубин)</td> | |
<td>{{#combobox}}-,+-,+,++,+++{{/combobox}}</td> |
Delete Local Branch $ git branch -d branch_name
or
$ git branch -D branch_name # force delete (for ex non-merged)
Delete Remote Branch $ git push <remote_name> --delete <branch_name>
OlderNewer