- Удаляем лишние теги и пустые атрибуты:
<\/?(span|div|strong|br)\s*\/?>|<p> </p>|<\w+></\w+>|\s+(\w+)\=""
(разделитель страницы) - Теги:
Feature
-><span class="dv-feature">Feature</span>
Improvement
-><span class="dv-improvement">Improvement</span>
Bug
-><span class="dv-bug">Bug</span>
- Удаляем лишние переносы строк:
(\r?\n){3,}
->\n\n
- Ссылки на задачи в YouTrack:
<a href="[^"]+">\s*(\w+\-\d+)\s*</a>
-><a href="https://youtrack.dv.team/issue/$1" class="dv-task" target="_blank">$1</a>
- Прочие ссылки:
- В коде есть миграции? Показать Саше. Тяжелые ALTER TABLE запускать только ночью в выходные, перед запуском такого альтера надо сделать deploy-lock, убедиться через processlist что альтер начал работать, потом убрать deploy-lock.
- Экранируем всё в html шаблонах.
- [ ]
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 | |
use Dostavista\Framework\Form\FormAbstract; | |
use Zend_Form_Decorator_Label; | |
/** | |
* @property Zend_Form_Element_Text $text_field_name | |
*/ | |
class TemplateForm extends FormAbstract { | |
/** |
- Не использовать IF NOT EXISTS;
- Вместо
id
называть ключиtable_name_id
; - LOCK=NONE для больших таблиц не работает, выкатывать изменения в таких таблицах только ночью с deploy-lock;
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
/** | |
* Текст с многоточием. | |
*/ | |
.text-overflow | |
{ | |
display: block; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; |
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
/** | |
* jQuery Plugin Template | |
* | |
* @see http://stefangabos.ro/jquery/jquery-plugin-boilerplate-revisited/ | |
*/ | |
!(function($) { | |
'use strict'; | |
$.pluginName = function (element, options) { | |
// plugin's default options |
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
86937 isset | |
43159 echo | |
31697 empty | |
29252 substr | |
26146 count | |
24248 is_array | |
22572 strlen | |
19365 sprintf | |
18090 unset | |
16584 str_replace |
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 | |
# @link http://habrahabr.ru/post/93695/ | |
# @link https://gist.github.com/jasonlewis/6291983 | |
# @link https://github.com/RoverWire/virtualhost/blob/master/virtualhost.sh | |
# @link http://www.sebdangerfield.me.uk/2011/03/automatically-creating-new-virtual-hosts-with-nginx-bash-script/ | |
# @link https://coderwall.com/p/cqoplg/bash-script-to-create-new-apache2-virtual-hosts | |
domain=$1 | |
user=georgy | |
group=georgy |
NewerOlder