Skip to content

Instantly share code, notes, and snippets.

@yasinkuyu
yasinkuyu / laravel.txt
Created September 9, 2023 21:31
Önemli Laravel komutları
Önemli Laravel komutları
# Development modunda bağımlılıkları yükle
composer install --optimize-autoloader --dev
# Production (canlı) modunda bağımlılıkları yükle
composer install --optimize-autoloader --no-dev
# Public/storage klasörünü storage/app/public ile ilişkilendir
php artisan storage:link
@yasinkuyu
yasinkuyu / create_subdomain.php
Created April 30, 2023 23:34
Create a subdomain on DigitalOcean without using Composer
<?php
$data = array(
"type" => "A",
"name" => "SUBDOMAIN",
"data" => "188.*****", // your ip address
"ttl" => 1800
);
$ch = curl_init();
@yasinkuyu
yasinkuyu / Dizipal-AdBlock.js
Last active December 30, 2023 17:56
Dizipal Ads Blocker and Intro Ads Skipper (Tampermonkey/Greasemonkey Chrome Extension)
// ==UserScript==
// @name Dizipal AdBlock
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Dizipal Ads Blocker and intro ads skipper (tampermonkey / greasemonkey chrome extension)
// @author Yasin Kuyu
// @date 17/09/2022
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @include *dizipal*.com/*
@yasinkuyu
yasinkuyu / digitalocean.php
Last active April 30, 2023 23:35
Create a new domain using the DigitalOcean PHP API
<?php
// DigitalOcean API https://cloud.digitalocean.com/settings/applications
require_once 'vendor/autoload.php';
$url = "yasin.com";
$ip = "XX.XX.XX.XXX";
$client = new DigitalOceanV2\Client();
@yasinkuyu
yasinkuyu / search.exclude
Created January 16, 2021 10:24
vscode nuxt search exclude
"search.exclude": {
"**/.github": true,
"**/.nuxt": true,
"**/dist": true,
"package-lock.json": true,
"yarn.lock": true
}
@yasinkuyu
yasinkuyu / jquery-cron-tr.js
Last active November 7, 2020 11:47
jQuery Cron Job Turkish (TR)
/*
* jQuery gentleSelect plugin (version 0.1.4.1)
* http://shawnchin.github.com/jquery-cron
*
* Copyright (c) 2010-2013 Shawn Chin.
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* @yasinkuyu
*
* Requires:
@yasinkuyu
yasinkuyu / cloudflare_bypass.php
Created November 2, 2020 11:39
PHP CURL function which bypasses the Cloudflare
<?php
/*
PHP CURL function which bypasses the Cloudflare
@yasinkuyu
*/
function cloudFlareBypass($url){
$useragent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z‡ Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";
@yasinkuyu
yasinkuyu / xtensions_bestCheckout_turkish
Last active August 5, 2020 23:43
Opencart XtensionsTurkish (BestCheckout2.0.x.x-2.1.x.xVersion5.0.1.7.ocmod)
<?php
//Entry Variables - overrides
$_['entry_customer_group'] = 'Müşteri Grubu';
$_['entry_firstname'] = 'Ad';
$_['entry_lastname'] = 'Soyad';
$_['entry_email'] = 'E-Mail';
$_['entry_confirm_email'] = 'E-Mail Tekrar';
$_['entry_telephone'] = 'Telefon';
$_['entry_fax'] = 'Faks';
$_['entry_company'] = 'Firma Adı';
@yasinkuyu
yasinkuyu / insya_yurtici
Last active May 10, 2022 12:51
Opencart Yurtiçi (ocmod) 2.0.x & 3
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>insya_yurtici</name>
<code>insya_yurtici</code>
<version>1.0</version>
<author>Yasin Kuyu | bilgi@insya.com</author>
<link>http://insya.com</link>
<file path="admin/controller/setting/setting.php">
<operation>
<search position="before"><![CDATA[
@yasinkuyu
yasinkuyu / payu_taksit
Last active August 5, 2020 23:40
Opencart Payu Taksit Tabı 1.5.x (ocmod)
<modification>
<id>Payu Modülü Taksit Tabı</id>
<version>1.0 - OC 1.5.X</version>
<vqmver>2.1.7</vqmver>
<author>Payu site içi</author>
<file name="catalog/controller/product/product.php">
<operation error="skip">
<search position="after"><![CDATA[$data['points'] = $product_info['points'];]]></search>