This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Symfony3.2 Virtualhost | |
.htpasswd | |
PHP cancel for directory | |
<VirtualHost dys.com:80> | |
ServerName dys.com | |
DocumentRoot /var/www/dys/root/web | |
# <Directory "/var/www/dys/root/web/uploads"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select:function (start, end) { | |
var mEnd = $.fullCalendar.moment(end); | |
var mStart = $.fullCalendar.moment(start); | |
slotParts = calendar.fullCalendar('option','slotDuration').split(':'); | |
var addDurationToStart = moment(mStart).add(slotParts[0], 'hours').add(slotParts[1],'minutes'); | |
if (mEnd.isAfter(addDurationToStart)) { | |
calendar.fullCalendar('unselect'); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" id="myInput" class="form-control mb5" placeholder="Sinav arayin..."> | |
<div style="overflow: auto; max-height: 250px"> | |
<table id="myTable"> | |
{% for exam in exams %} | |
<tr> | |
<td width="1"> | |
<input type="checkbox" name="examList[]" value="{{ exam.id }}"> | |
</td> | |
<td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Symfony3.2 Virtualhost | |
# .htpasswd | |
# PHP cancel for directory | |
# Hide uploaded files physical paths | |
ServerSignature Off | |
ServerTokens Prod | |
<VirtualHost www.domain.com:80> | |
RewriteEngine On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// captcha.php | |
// Captcha image kaynagi dosyamiz resim olarak captcha kodu uretiyor | |
session_start(); | |
// Captcha yanlislikla onbellekten cagrilmasin diye header ayarlarini guncelliyoruz | |
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
#RewriteBase /path/to/app | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [QSA,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
p.*, | |
(SELECT GROUP_CONCAT(rel.grup_tag_admin_name) FROM product_grup_tag_relation AS rel WHERE p.admin_name = rel.product_admin_name) AS gan, | |
(SELECT ei.thumb_path FROM product_images AS ei WHERE ei.product_admin_name = p.admin_name ORDER BY ei.cover DESC LIMIT 1) AS thumb_path | |
FROM product AS p | |
WHERE p.lang='tr' | |
GROUP BY p.id | |
DESC | |
HAVING gan LIKE '%5ad217158154e%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { deger: 0 } | |
this.arttirFunction = this.arttirFunction.bind(this) | |
} | |
arttirFunction() { | |
this.setState({ deger: this.state.deger + 1 }) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDE8d9saQ0s5MH8OaROzn7AgOvskT7UF4LQb6Xnx6GNNehTtdTFO0+jzo3b5ik7EPe10uMrsGasAdhoEPIPCdRRohN1FoRdQzCab13fdJURfEx6PZ/TBVpEUr04rQ5QYOshmsEIkQtf0PAmccGrFQHyuN/S8dEuTWR1YnY762+O2Q3UJgJPnfBHxZmoC9yXl1e4XZKNl67xEPFpiDS4sEDf7XVzxs2LU8zcWFBBW24HUEj1cugseiew5u3i3oWjaQVU64k/XUPZTc2W0hVGNr/A3Je1Dc2K//E1W/LSLng1obfXhIKx4VOytYxjaQeaLBAp3A7Mu+82fJ0FNbOKVf7Z7VlVcGJUrGyIhx4KbwtQB03eR8sFsBCMKZw8jboMbO4+4m3Bx9wDdYR7+YYbdce7/Rv4jsVUGBdTgOkO7aqernC0wSJt9jWSb6YbJ8BHSXUeY202dR2++4uZ6aB9j5kYce/EOd4KAuW/v8WgztaAatJDvfJNimVzWtHHhZ0bxSk= root@meso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arr = [ | |
'car1' => [ | |
'price' => 40, | |
'title' => 'car 3', | |
'brand' => 'VW' | |
], | |
'car2' => [ | |
'price' => 30, |
OlderNewer