Skip to content

Instantly share code, notes, and snippets.

@beglov
beglov / rubocop_pre_commit_hook
Created May 22, 2020 09:29 — forked from palkan/rubocop_pre_commit_hook
Rubocop pre-commit hook
#!/usr/bin/env ruby
ADDED_OR_MODIFIED = /^\s*(A|AM|M)/.freeze
changed_files = `git status --porcelain`.split(/\n/)
unstaged_files = `git ls-files -m`.split(/\n/)
changed_files = changed_files.select { |f| f =~ ADDED_OR_MODIFIED }
changed_files = changed_files.map { |f| f.split(" ")[1] }
@beglov
beglov / gost_engine.sh
Last active May 27, 2021 12:46 — forked from shadz3rg/gost_engine.sh
Настройка ГОСТ OpenSSL под Ubuntu 18.04
# устанавливаем ГОСТ-овское шифрование
sudo apt install libengine-gost-openssl1.1
# правим конфиг
sudo nano /etc/ssl/openssl.cnf
# в начало файла
openssl_conf = openssl_def
# в конец