Skip to content

Instantly share code, notes, and snippets.

View emirajbbd's full-sized avatar

MD ENAMUL HAQUE emirajbbd

  • Harris Web Works Dhaka Ltd
  • Bangladesh
View GitHub Profile
@emirajbbd
emirajbbd / example.phtml
Created March 23, 2021 09:53 — forked from guz-anton/example.phtml
Instagram feed. Magento 2 + instafeed.js snippet.
<div data-role="instafeed" class="instafeed-container"></div>
<script type="text/x-magento-init">
{
"[data-role=instafeed]": {
"instafeed-loader": {
"userId": "{{userId}}", // https://stackoverflow.com/q/11796349
"accessToken": "{{accessToken}}" // https://www.instagram.com/developer/authentication/
}
}
}
  • Maximum Open Files
You requested maxclients of 10000 requiring at least 10032 max file descriptors.
Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
@emirajbbd
emirajbbd / Magento 2 - Remove all customer data
Created December 20, 2021 18:22 — forked from rafaelstz/Magento 2 - Remove all customer data
Remove all Magento 2 test Sample Data
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE `customer_entity`;
TRUNCATE TABLE `customer_entity_datetime`;
TRUNCATE TABLE `customer_entity_decimal`;
TRUNCATE TABLE `customer_entity_int`;
TRUNCATE TABLE `customer_entity_text`;
TRUNCATE TABLE `customer_entity_varchar`;
TRUNCATE TABLE `customer_address_entity`;
TRUNCATE TABLE `customer_address_entity_datetime`;
@emirajbbd
emirajbbd / wp-update
Created April 6, 2023 10:50 — forked from keesiemeijer/wp-update
A bash script to update everything WordPress (core, plugins, themes and comments).
#!/usr/bin/env bash
# =============================================================================
#
# *** WARNING: THIS SCRIPT IS NO LONGER MAINTAINED ***
#
# use https://github.com/keesiemeijer/wp-update instead
#
# =============================================================================