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
wget -r -l 0 -nH ftp://password:[email protected]//public_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
mysqldump -u userNAme -h site.mysql.tools -p --no-autocommit --opt DATABASENAME >/home/padilo/mysql.sql; |
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
Внимательно проверьте html код страницы на наличие ссылок на http. | |
Замените все вхождения на https. | |
Profit! |
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
grep --exclude=\*.{jpg,png,gif,svg,xml,sql,jpeg,JPG,log,eot,ttf,css,md,txt,scss,zip,psd} --exclude-dir={.git,bitrix,upload,updates} -Hrl 'recreative' /home/bitrix/ext_www/site.com/ | cut -d: -f1 | sort -u | |
\ исключить \ /исключить / /строка которую искать/ /путь где искать / |
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
slowhttptest -c 1000 -B -i 110 -r 200 -s 8192 -t FAKE -u https://site.com/ -x 10 -p 3 |
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
dirname($_SERVER['PHP_SELF']) | |
dirname(dirname($_SERVER['PHP_SELF'])) // что-бы выше |
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
<a href="#" onclick="history.back();"> | |
back | |
</a> |
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
<span class="dataLink" data-link="https://google.com/"> | |
link | |
</span> | |
$('.dataLink').on('click', function(){ | |
var link = $(this).attr('data-link'); | |
window.location.href = link; | |
// window.open(link); в новой вкладке | |
}); |
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 | |
$webHookScript = 'https://bitrix24.твойБитрикс.com.ua/rest/1/ep43243342u7yjj4234k4i4q026j/'; // входящий вебхук | |
$dealData = array( | |
"TITLE" => "Заказ с сайта" , | |
"TYPE_ID" => "GOODS" , | |
"STAGE_ID" => "NEW" , | |
"CONTACT_ID" => $CONTACT_ID , // если нужно прикрепить к конкретному контакту | |
"OPENED" => "Y" , |
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.extend(jQuery.validator.messages, { | |
required: "This field is required.", | |
remote: "Please fix this field.", | |
email: "Please enter a valid email address.", | |
url: "Please enter a valid URL.", | |
date: "Please enter a valid date.", | |
dateISO: "Please enter a valid date (ISO).", | |
number: "Please enter a valid number.", | |
digits: "Please enter only digits.", | |
creditcard: "Please enter a valid credit card number.", |