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 | |
########### wp replace url in DB ############# | |
1 | |
http://dugoodr.com | |
http://dugoodr2.dev | |
2 | |
/home/dugoodr6/public_html/ | |
/home/jetfire/www/dugoodr2.dev/ |
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
My best wordpress plugins 28.03.2016 | |
1) Contact Form 7 - формы | |
2) Polylang - мультиязычный сайт | |
3) Theme Check - Простой и легкий способ протестировать вашу тему в соответствии с последними стандартами WordPress. Отличный инструмент в разработке тем! | |
4) Wordfence Security - проверка безопасности сайта |
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
<script> | |
// ************ регулярные выражения на javascript (пример) ********** | |
// var str = '<a id="show_fast_buy" rel="nofollow" href="#fast_buy" data-quantity="1" data-product_id="92" data-title="Мужские тапочки ручной работы" class="popup-modal_buy button add_to_cart_button">Быстрая покупка</a>'; | |
// находим data-title="Мужские тапочки ручной работы | |
var title = link_cont.match(/data-title="[^"]+/i); | |
title = title[0]; | |
// находим "Мужские тапочки ручной работы | |
title = title.match(/"[^"]+/i); | |
title = title[0]; |
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
платаня wp теьа из envato | |
загрузил в католог изображение товара нестандартного размера (меньше чем нужно)... | |
1) img не отцентрировано по вертикали | |
2) в thumbs обрезка кривая | |
с большими изображ все отлично | |
в итоге в uplodads 11 изображ с разными размерами | |
------------------------ |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=9"> | |
<title>SVG animation with lib snap.svg</title> | |
<script src="snap.svg-min.js"></script> | |
</head> | |
<body> | |
<script> |
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
Какие ограничения на хостинге Евробайт? | |
=============================================== | |
В зависимости от тарифа, не допускается пиковое использование процессами пользователя более чем 100% ресурсов одного ядра процессора. | |
Уровень допустимой нагрузки для стандартных тарифов виртуального хостинга: | |
3Гб — 15% | |
5Гб — 22.5% | |
8Гб — 35% | |
15Гб — 50% |
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 | |
/** | |
* Show up some server infor's on wordpress | |
* @author GamerZ (http://www.lesterchan.net) | |
*/ | |
function ngg_get_serverinfo() { | |
// global $wpdb, $ngg; | |
global $wpdb; | |
// Get MYSQL Version |
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
<? | |
// распаковка zip архива средставми php | |
$zip = new ZipArchive; | |
$zip->open('graphite.zip'); | |
$zip->extractTo('./'); | |
$zip->close(); | |
echo "Ok!"; | |
/////////////////////////////////////////////////////////////// |
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
# ColorHighlighter - https://packagecontrol.io/packages/Color%20Highlighter | |
полезный плагин для подсветки html кодов цвета+colorpicker | |
# ColorSchemeEditor - https://packagecontrol.io/packages/ColorSchemeEditor | |
удобный редактор цветовых схем (работает в паре с PackageResourceViewer) | |
# PackageResourceViewer - https://packagecontrol.io/packages/PackageResourceViewer | |
удобный и быстрый просмотр всех исходных кодов | |
# Compare Side-By-Side - https://packagecontrol.io/packages/Compare%20Side-By-Side |
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
установка debian_x64 со всеми графич средами (gnome,xfce,kde,etc) = 5,8gb | |
полная установка заняла чуть больше 1 часа | |
Хоткеи в терминале | |
Фичи линуксов можно узнавать бесконечно. | |
ctrl-k — При редактировании команды в командной строке эта комбинация удаляет все введенные символы от курсора до конца строки. | |
ctrl-d — равносильно exit. | |
ctrl-r — Используется для поиска команды в истории командной строки (набирается эта комбинация и затем начальные буквы искомой команды). | |
ctrl-z — Останавливает текущее приложение. Последующий ввод bg переводит приложение в фоновый режим, fg — вывод из фонового режима. jobs — просмотр задач, запущенных в фоне. |
OlderNewer