Skip to content

Instantly share code, notes, and snippets.

View nook-ru's full-sized avatar

Marat Shamshutdinov nook-ru

  • Russia, Yoshkar-Ola
View GitHub Profile
@nook-ru
nook-ru / JetBrains trial reset.md
Created May 12, 2024 16:44 — forked from h3ssan/JetBrains trial reset.md
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@nook-ru
nook-ru / gost_engine.md
Last active January 20, 2025 14:51 — forked from beglov/gost_engine.sh
Настройка ГОСТ OpenSSL под Ubuntu 20.04 (18.04)
  1. Устанавливаем ГОСТ-овское шифрование sudo apt install libengine-gost-openssl1.1

  2. Правим конфиг sudo nano /etc/ssl/openssl.cnf

  3. В начало файла:

    openssl_conf = openssl_def
    
@nook-ru
nook-ru / git-cleanup
Last active March 11, 2021 12:05 — forked from larowlan/git-cleanup
Clean up old git branches
#!/bin/bash
# This has to be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches
git branch --merged master | grep -v 'master$' | grep -v 'dev$' | xargs git branch -d
@nook-ru
nook-ru / introrx.md
Created August 22, 2017 09:03 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@nook-ru
nook-ru / debug.php
Created February 19, 2016 12:48
Bitrix(d7). Debug
<?php
use Bitrix\Main\Diag\Debug;
use Bitrix\Main\Diag\Helper;
/*Write in file*/
//Debug::writeToFile($variable, $varName, $file);
Debug::writeToFile(['ID' => $ID, 'fields' => $arResult ], null, "log.log");
Debug::dumpToFile(['ID' => $ID, 'fields' => $arResult ], null, "log.log");
/*Time label*/
@nook-ru
nook-ru / README.ru.md
Created February 19, 2016 11:21
Bitrix (d7) is admin section

Административная часть сайта

Назначение

Метод используется для идентификации административного раздела сайта /bitrix/admin/. Возвращает true если в этом разделе, и false в остальных случаях

Ссылки по теме

Bxapi.ru

@nook-ru
nook-ru / PhpStorm noinspection.md
Last active February 19, 2016 11:34 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation

javascript

ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection