Skip to content

Instantly share code, notes, and snippets.

View hayatbiralem's full-sized avatar

Ömür Yanıkoğlu hayatbiralem

View GitHub Profile
@hayatbiralem
hayatbiralem / ContextCmder-Disable.reg
Created January 19, 2017 10:25 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@hayatbiralem
hayatbiralem / urunler.xml
Last active November 22, 2017 13:07
Temp
This file has been truncated, but you can view the full file.
[
{
"sku":"BL00001-R01",
"store_view_code":"",
"attribute_set_code":"Default",
"product_type":"",
"categories":"Default Category/BİLEKLİK",
"product_websites":"base",
"name":"BL00001-R01",
"short_description":"",
KL00567-R06,0
KL00567-R08,0
KL00568-G01,2
KL00568-R01,6
KL00569-R01,1
KL00569-R03,0
KL00569-R05,0
KL00569-R07,0
KL00569-R08,0
KL00569-R12,3
@hayatbiralem
hayatbiralem / Readme.md
Last active April 15, 2018 20:01
Sample: Using Contact Form 7 with Enfold

Using Contact Form 7

These codes for Ephemerid.

Disable Autop

First of all disable autop with this:

# wp-config.php
define('WPCF7_AUTOP', false);
server {
listen 80;
listen [::]:80;
server_name parkinson.irm.com.tr;
root /var/www/html/parkinson/public;
index index.php index.html index.htm;
location / {
@hayatbiralem
hayatbiralem / remove-default-jquery-ajax-header.js
Created June 22, 2018 07:01
Remove Default jQuery Ajax Header
$.ajax(
'https://api.github.com/search/repositories?q=' + encodeURIComponent(search),
{
// 'xhr' option overrides jQuery's default
// factory for the XMLHttpRequest object.
// Use either in global settings or individual call as shown here.
xhr: function() {
// Get new xhr object using default factory
var xhr = $.ajaxSettings.xhr();
// Copy the browser's native setRequestHeader method
@hayatbiralem
hayatbiralem / download.sh
Created October 5, 2018 13:01
Download website recursively with wget
#!/bin/bash
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=unix \
--domains domain.com \
@hayatbiralem
hayatbiralem / remove-empty-array-values.php
Created November 15, 2018 18:07
Remove empty arrays from nested array
<?php
$array1 = $array2 = array (
0 =>
array (
'id' => '',
'name' => '',
'description' => null,
'categories' => false,
'posts' => '',
@hayatbiralem
hayatbiralem / en.json
Last active April 24, 2019 09:42
Phone Area Codes in JSON Format (EN & TR)
{
"+90": "Turkey",
"+93": "Afghanistan",
"+355": "Albania",
"+213": "Algeria",
"+1": "US Virgin Islands",
"+376": "Andorra",
"+244": "Angola",
"+54": "Argentina",
"+374": "Armenia",
@hayatbiralem
hayatbiralem / log-all-events.js
Last active October 30, 2019 15:42
Log all events
// Detailed source: https://css-tricks.com/capturing-all-events/
var oldAddEventListener = EventTarget.prototype.addEventListener;
var disabled = ['mousemove', 'mouseover'];
EventTarget.prototype.addEventListener = function(eventName, eventHandler)
{
if(disabled.indexOf(eventName) === -1) {
console.log(eventName, eventHandler.toString());
}