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 / meta-tags.md
Created December 12, 2018 20:04 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@emirajbbd
emirajbbd / tags.html
Created December 12, 2018 20:09 — forked from joshbeckman/tags.html
Meta/link tags necessary to make mobile devices correctly display responsive and mobile-optimized sites.
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-type" /><!-- speak the same language -->
<meta content="width=device-width, initial-scale=1" name="viewport" /><!-- correctly relate screen size to CSS -->
<meta name="HandheldFriendly" content="true" /><!-- BlackBerry, please don't f*** with my page -->
<meta name="apple-mobile-web-app-capable" content="yes"><!-- iPhone save-to-home-screen-able -->
<link rel="icon" href="/images/favicon.png"><!-- bookmarking/favoriting image -->
<meta name="msapplication-TileColor" content="#ffffff"/><!-- Windows 8/Windows phone -->
<meta name="msapplication-TileImage" content="/images/favicon.png"/><!-- Windows 8/Windows phone -->
@emirajbbd
emirajbbd / meta-tags.md
Created December 12, 2018 20:12 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@emirajbbd
emirajbbd / customers.sql
Created December 18, 2018 16:44 — forked from leek/_Magento1_DeleteTestData.md
Magento - Delete All Test Data
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
For OpenVZ refer this URL: (https://openvz.org/User_Guide/Operations_on_Containers)
=======================
vzlist -a ------ To list all the containers on OpenVZ including running and stopped.
vzlist -a 101 ----- To check specific container is present or not (101 => Container ID)
/vz/template/cache ------ Contains all the OS templates
/vz/private/ ----- it contains list of all the existing containers.
@emirajbbd
emirajbbd / opcache.ini
Created January 16, 2020 01:51 — forked from rohankhudedev/opcache.ini
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
@emirajbbd
emirajbbd / upstream.md
Created May 14, 2020 03:10 — forked from hackjutsu/upstream.md
[set upstream] What does '--set-upstream' do? #tags: git
git branch --set-upstream-to <remote-branch>
# example
git branch --set-upstream-to origin feature-branch

# show up which remote branch a local branch is tracking
git branch -vv

sets the default remote branch for the current local branch.

@emirajbbd
emirajbbd / 404.html
Created October 30, 2020 23:15 — forked from Rady/404.html
Trying to secure Nginx the most for Joomla CMS under Ubuntu 11.10
<!-- to be saved at /usr/share/nginx/html/404.html -->
<html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 404 (Not Found)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
</style>
<link type="text/css" rel="stylesheet" href="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/style.css"><script type="text/javascript" charset="utf-8" src="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/page_context.js"></script></head><body screen_capture_injected="true">
<!--
@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/
}
}
}