Skip to content

Instantly share code, notes, and snippets.

View aletoropov's full-sized avatar
🏠
Working from home

Alexandr aletoropov

🏠
Working from home
View GitHub Profile
@aletoropov
aletoropov / ssh-keygen.sh
Created September 20, 2024 06:46
SSH генерация ключей
ssh-keygen -t rsa -C "[email protected]" -f ~/.ssh/id_rsa -P ""
cat ~/.ssh/id_rsa.pub
@aletoropov
aletoropov / error_log.php
Created September 29, 2024 20:01
Сохранение PHP ошибок в файл
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 0);
ini_set('log_errors', 'on');
ini_set('error_log', __DIR__ . DIRECTORY_SEPARATOR . 'error_log.txt');