Skip to content

Instantly share code, notes, and snippets.

View AlexGx's full-sized avatar

Alexander Gubarev AlexGx

View GitHub Profile
<?php
namespace console\controllers;
use \Yii;
class ReverseController extends \yii\console\Controller
{
public function actionMigrate() {
// $schema = $args[0];
$tables = Yii::$app->db->schema->getTableSchemas();
<?php
namespace common\components\chrome;
use DOMDocument;
/**
* Class ChromeAutoUpdate.
*/
class ChromeAutoUpdate

sudo npm cache clean -f sudo npm install -g n sudo n stable

open /usr/local/etc/nginx
sudo discoveryutil mdnsflushcache

brew install mozjpeg

make symlink from mozjpeg bin folder

sudo ln -s /usr/local/Cellar/mozjpeg/3.1/bin/jpegtran /usr/local/bin/mozjpeg

<?php
/**
* @param bool $short
* @return string
*/
public function getContent($short = true)
{
$body = $this->site_content;
// TODO: remove shortend
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
<table border="1">
<tbody>
<tr>
<td>BLD (кровь)</td>
<td>{{#combobox}}-,+-,+,++,+++{{/combobox}}</td>
<td>{{#combobox}}отрицательно,(RBC/&micro;L){{/combobox}}&nbsp;{{{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>