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
git diff --ignore-space-at-eol --stat |
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
# Windows: doesn't work in Git Bash, use Cygwin (with cd "D:\etc..." first) | |
for file in $(git diff --ignore-space-at-eol --stat=1000,1000|cut -d' ' -f2|head -n -1); do git add $file; done && git checkout . |
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
@REM 1) Put this file in your PHP bin folder (e.g. ...\Program Files\PHP) | |
@REM 2) Put .phar files in a subfolder phar\ | |
@REM 3) Call .phar's like: phar php-cs-fixer --etc --etc | |
@REM Currently doesn't support more than 8 arguments to the phar, since I couldn't find an easy way to have shift(%*) | |
@php %~dp0phar\%1.phar %2 %3 %4 %5 %6 %7 %8 %9 |
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
REM Python Install Path (e.g. C:\Python2.7) should be in your %PATH%, or you should provide a full path instead of "python" | |
REM Put this in some folder that is in your %PATH% as well | |
REM Run this as "gae_serve_php path\to\project", if already in the project dir "gae_serve_php ." | |
python "<PATH TO GAE PHP SDK>\google_appengine\dev_appserver.py" --php_executable_path="<PATH TO PHP 5.4>\php-cgi.exe" "%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
jQuery.makeArray($("<SELECTOR>").find("option").map(function() { return $(this).text(); })).join("\n"); |
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 | |
// http://googlewebmastercentral.blogspot.com/2011/01/how-to-deal-with-planned-site-downtime.html | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
?> | |
<!doctype html> | |
<html itemscope itemtype="http://schema.org/WebPage"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Company Name</title> | |
</head> |
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 | |
t.bid, t.badi, t.averaj, t.sira | |
FROM ( | |
SELECT b.bid, b.badi, p.averaj, @sira := @sira + 1 AS sira | |
FROM bitki b | |
JOIN (SELECT @sira := 0) r | |
INNER JOIN (SELECT bid,AVG(puan) averaj FROM puanlar GROUP BY bid) p ON p.bid=b.bid | |
ORDER BY p.averaj DESC | |
) t | |
WHERE t.bid = 3; |
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
set NSPR_LOG_MODULES=smtp:5 | |
set NSPR_LOG_FILE=D:\Users\halil\Desktop\smtp.log | |
"%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe" |
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
:: Simple Apache/PHP version switcher. Assumes there are folders like "php5.4", | |
:: "Apache2.4Win64VC11", "php5.5VC11x64ts" etc with php and Apache unzipped. | |
:: Usage: switch 2.4 5.5 | |
@echo off | |
:: Get Apache service version, e.g. 2.2/2.4 | |
set ApacheName=%1 | |
set ApacheServiceVersion=%ApacheName:~0,3% |
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
/** | |
* Windows DNS Switcher - Don't wear out your mouse trying to change your DNS server adresses. | |
* @author Halil Ozgur | |
* @license GPL Licence | |
*/ | |
var dnsler = [ | |
["Empty (DHCP-Auto)", []], | |
["OpenDNS", ["208.67.222.222", "208.67.220.220"]], | |
["Google DNS", ["8.8.8.8", "8.8.4.4"]], |
OlderNewer