Skip to content

Instantly share code, notes, and snippets.

View mehmetkurt's full-sized avatar
🏛️
B2B & B2C Pro

Mehmet KURT mehmetkurt

🏛️
B2B & B2C Pro
View GitHub Profile
@mehmetkurt
mehmetkurt / elasticsearchproblemsolve.md
Last active December 24, 2021 20:41 — forked from hkulekci/solve.md
Elasticsearch "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)" error

If u are getting below error while indexing:

{
  "error": {
    "root_cause": [
      {
        "type": "cluster_block_exception",
        "reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
 }
@mehmetkurt
mehmetkurt / js-delegate.js
Created September 23, 2021 00:54 — forked from evenicoulddoit/js-delegate.js
Basic JavaScript Delegation
(function(document, EventTarget) {
var elementProto = window.Element.prototype,
matchesFn = elementProto.matches;
/* Check various vendor-prefixed versions of Element.matches */
if(!matchesFn) {
['webkit', 'ms', 'moz'].some(function(prefix) {
var prefixedFn = prefix + 'MatchesSelector';
if(elementProto.hasOwnProperty(prefixedFn)) {
matchesFn = elementProto[prefixedFn];