Skip to content

Instantly share code, notes, and snippets.

View 0m3r's full-sized avatar

Oleksandr Krasko 0m3r

View GitHub Profile
@amenk
amenk / README.md
Created January 29, 2018 15:07
How To Apply a Magento 2 Patch to your project
  • Find the commit a GitHub
  • Add .patch to the URL
  • Require vaimo/composer-patches
  • Add an entry like the above, with path-removal-level 5, to the composer.json
@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';