Skip to content

Instantly share code, notes, and snippets.

@dozer111
dozer111 / JsForceRedirect.md
Last active October 8, 2019 11:56
Force redirect on js
function url_redirect(url){
    var X = setTimeout(function(){
        window.location.replace(url);
        return true;
    },300);

    if( window.location = url ){
        clearTimeout(X);
 return true;
@dozer111
dozer111 / xdebug.md
Last active June 1, 2022 09:28
Xdebug + PHPstorm

Install

1. sudo apt-get install php<version>-xdebug

Проверить что xdebug корректно установлен: php -v image1


2. Узнаём, где наш файл с конфигом xdebug =>

php --ini
Отфильтрованны вариант => php --ini | grep xdebug

@dozer111
dozer111 / test.md
Last active May 3, 2019 14:00
test