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 | |
$b = '2017-03-08 14:11:10'; | |
echo strtotime( $b); // e.g 1488982270 произвольную дату в правильном формате в unix метку | |
/* *** множественное обновление за 1 запрос,второй запрос работает быстрее*** */ | |
$st_time = microtime(true); | |
// $wpdb->query("UPDATE alex_test SET post_title='t11111111111111_w2',post_content='c111111111111111_w2' WHERE id=1"); | |
// $wpdb->query("UPDATE alex_test SET post_title='t21111111111111_w2',post_content='c211111111111111_w2' WHERE id=2"); | |
// $wpdb->query("UPDATE alex_test SET post_title='t31111111111111_w2',post_content='c311111111111111_w2' WHERE id=3"); |
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 | |
// - #1 | |
/* ********Обработка строк (обрезка / поиск) ****** */ | |
// Находит последнее вхождение подстроки Пример: https://twitter.com/ottawafoodbank | |
echo $str = substr(strrchr($str,"/"), 1); // вернет ottawafoodbank | |
// - #2 |
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 | |
/* парсинг сайта с простой авторизацией,скрипт эмулиреут браузер,отрпвляет все заголовки:язык,юзер агент и т.д | |
работает на: | |
модифицирован: переходит последовательно на 3 страницы и формирует готоый html на выходе | |
*/ | |
header("content-type: text/html;charset=utf-8"); | |
ini_set('error_reporting', E_ALL); |
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
<!-- волновая анимация кнопки http://fian.my.id/Waves/#start --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Waves example</title> | |
<!-- <link rel="stylesheet" type="text/css" href="js/waves.min.css" /> --> | |
<link rel="stylesheet" type="text/css" href="js/waves.css" /> | |
<style> | |
#colored-button .btn {margin:0 20px 20px 0; color: #fff; } | |
#colored-button a, |
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 | |
// all buddypress functions and conditional tags (условные тэги) | |
// https://codex.buddypress.org/developer/template-tag-reference/ | |
// настройки buddypress | |
// https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/ | |
// проверяет находимся ли мы на странице http://dugoodr.dev/members/ | |
bp_is_members_component() | |
// проверяет находимся ли мы на страницах пользователя http://dugoodr.dev/members/din-vinchester/* |
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
Ошибка: | |
Access violation | |
Please report this error to the bug tracker with a description of what you were doing and the following file: | |
/home/jetfire/.config/doublecmd/doublecmd.err |
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
Обновление NetCat версии 5.2.0 E-commerce до версии 5.3.0 E-commerce 2017-02-07 20:33:38 | |
ПЕРЕД ИСПОЛЬЗОВАНИЕМ АДМИНИСТРАТИВНОЙ ЧАСТИ САЙТА - ОБНОВИТЕ ОКНО БРАУЗЕРА (Ctrl+F5 или Ctrl+R)! | |
================================================================ | |
ДОПОЛНЕНИЯ | |
================================================================ | |
- добавлен новый функционал в модуль "Интернет-магазин": | |
- | добавлено новое API; |
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
inurl:wp-config.php -intext:wp-config DB_NAME | |
inurl:backup filetype:zip |
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 — просмотр задач, запущенных в фоне. |
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 |