Skip to content

Instantly share code, notes, and snippets.

View monteshot's full-sized avatar

Serhii Kushch monteshot

View GitHub Profile
@monteshot
monteshot / README.md
Created February 20, 2026 20:36 — forked from tg44/README.md
Cheap IP camera video converter

install nodejs 12

run with node app.js cameraRootDir

Almost works with Blitzwolf BW-SHC2 (no audio for me).

Not tested on windows, but probably changing the ffmpeg in the first two function-returns to something like ffmpeg.exe will make this work.

The script will recursively walk on every sudir, group the files ased on parent dir,

@monteshot
monteshot / mage2-multiweb-subdir.md
Created May 2, 2024 14:03 — forked from thagxt/mage2-multiweb-subdir.md
Set up Magento 2 multiple websites in sub directories

Set up Magento 2 multiple websites in sub directories

  1. Go to Admin > Stores > All Stores
  2. Click > Create Web Site
  3. In the Name field, enter store name.
    • e.g. Japan
  4. In the Code field, enter a unique string without spaces and > Save Web Site
    • e.g. super_jp
  5. Create Store
  6. Create Store View
<?php
/* Test script for reproducing https://github.com/magento/magento2/issues/35616
*
* 1. Mode of catalog_product_price indexer must be update by schedule.
*
* 2. Place this script into $MAGE_ROOT/scripts/index-buster.php
*
* 3. Execute it `php scripts/index-buster.php`. Do not terminate it. Wait for output to be ready.
*
@monteshot
monteshot / CODE_AND_DB_DUMP.MD
Created January 13, 2022 15:12 — forked from yvoronoy/CODE_AND_DB_DUMP.MD
How to Generate Magento2 Code and DB dumps

Code dump

You can use tiny script m2dump it is doing the same thing as described below.

Estimate size of directories and exclude no needed.

du -sh ./* | sort -h