Skip to content

Instantly share code, notes, and snippets.

View Serhioromano's full-sized avatar
💭
Experienced workaholic

Sergey Romanov Serhioromano

💭
Experienced workaholic
View GitHub Profile
@Serhioromano
Serhioromano / EPLAN
Created October 3, 2022 11:44
Курс по еплан
ПОдклассы буквенных обзначений создать свои и вставлять через правую кнопку мыши в обозначении устройств.
@Serhioromano
Serhioromano / docker.md
Last active July 7, 2022 14:00
Docker templates

MySQL

docker run -d --restart unless-stopped
--name mysql5
-e MYSQL_ROOT_PASSWORD=root
-e MYSQL_USER=sergey
-e MYSQL_PASSWORD=123456
-p 3305:3306
-v /share/BACKUPS/DockerVolumes/MySQL5/mysql:/var/lib/mysql
@Serhioromano
Serhioromano / backup.php
Last active February 20, 2021 10:43
AWS EC2 automatic volume daily snapshot.
#!/usr/bin/php -q
<?php
date_default_timezone_set('UCT');
$dryrun = FALSE;
$interval = '24 hours';
$keep_for = '10 Days';
$volumes = array('vol-9677d14a');
$api_key = 'AKI****EYUA';
$api_secret = 'IzMni****ct';