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 / dory.service
Created March 31, 2020 14:51
systemd unit for starting FreedomBen / dory docker proxy
# /etc/systemd/system/dory.service
# https://github.com/FreedomBen/dory
[Unit]
Description=Dory service
Requires=docker.service
After=docker.service
[Service]
User=root
@nook-ru
nook-ru / gost_engine.md
Last active August 22, 2025 16:06 — 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 / result_modifier.php
Last active February 25, 2022 07:24
bitrix:menu template helpers, иерархическое, многоуровневое меню
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* Раскладывает одноуровневый массив пунктов bitrix:menu в иерархию:
* дочерние пункты меню попадают в массив CHILDREN родительского.
*
* @param array $arResult
* @return array
const MORSE_CODE = [
'-.-.--' => '!',
'.-..-.' => '"',
'...-..-' => '$',
'.-...' => '&',
'.----.' => '\'',
'-.--.' => '(',
'-.--.-' => ')',
'.-.-.' => '+',
'--..--' => ',',
@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