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 | |
require_once('TwitterAPIExchange.php'); | |
$settings = array( | |
'oauth_access_token' => "", | |
'oauth_access_token_secret' => "", | |
'consumer_key' => "", | |
'consumer_secret' => "" | |
); | |
$url = 'https://api.twitter.com/1.1/statuses/user_timeline.json'; | |
$getfield = '?screen_name=gorunen_ad'; |
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
WITH CTE AS( | |
SELECT [col1], [col2], [col3], [col4], [col5], [col6], [col7], | |
RN = ROW_NUMBER()OVER(PARTITION BY col1 ORDER BY col1) | |
FROM dbo.Table1 | |
) | |
DELETE FROM CTE WHERE RN > 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
UPDATE t1 | |
SET t1.CalculatedColumn = t2.[Calculated Column] | |
FROM dbo.Table1 AS t1 | |
INNER JOIN dbo.Table2 AS t2 | |
ON t1.CommonField = t2.[Common Field] | |
WHERE t1.BatchNo = '110'; |
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
public class DatetimeBinder: IModelBinder | |
{ | |
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) | |
{ | |
string data = ""; | |
if (controllerContext.Controller.ValidateRequest && bindingContext.ModelMetadata.RequestValidationEnabled) | |
{ | |
data = controllerContext.HttpContext.Request.Params[bindingContext.ModelName]; | |
} | |
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
@ECHO OFF | |
Rem -- dizinler örnektir lütfen kendi mysql dizininizi belirtin burada wamp için örnekleme yaptım. Bu noktaya dikkat | |
C:\wamp\bin\mysql\mysql5.6.17\bin\mysqldump -u root --all-databases > "C:\mysqlbackups\tmp\alldb.sql" | |
Rem -- 7z indirip 7z.exe 7z.dll 7z-zip.dll 7z-zip32.dll yi de bu klasöre atın. ayrıca klasöre tmp adında bir klasör açmayı unutmayın | |
Rem -- ilk dizin adresi kaydedilecek yer ikincisi yukarıda dump sql i aktardığımız dosya adresi | |
7z a -tzip "C:\mysqlbackups\dest\mysql_alldatabase_%DATE:~7,2%.%DATE:~4,2%.%DATE:~-4%_backup.zip" "C:\mysqlbackups\tmp\*.*" -mx5 | |
Rem -- forfiles ile -d 3 yaparak 3 gün öncesinde ki dosyaları bulmuş oluyoruz bununla 3 gün öncesinde ki yedekleri sileceğiz kendinize göre ayarlayabilirsiniz | |
forfiles -p "C:\mysqlbackups\dest" -s -m *.* -d 3 -c "cmd /c del @path" |
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
//iframe ile eklenen map ın style özelliğine pointer-events:none eklemeyi unutmayın | |
$(function() { | |
$('.map-container').click(function(e) { | |
$(this).find('iframe').css('pointer-events', 'all'); | |
}).mouseleave(function(e) { | |
$(this).find('iframe').css('pointer-events', 'none'); | |
}); | |
}); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using Newtonsoft.Json; | |
//if you want to run online copy/paste https://dotnetfiddle.net/ | |
public class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using Newtonsoft.Json; | |
//if you want to run online copy/paste https://dotnetfiddle.net | |
public class Program | |
{ |
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
// ==UserScript== | |
// @name Unnamed Script 323435 | |
// @version 1 | |
// @grant none | |
// @include http://freebtcmine.com/ | |
// @require http://code.jquery.com/jquery-2.2.4.min.js | |
// ==/UserScript== | |
$(document).ready(function () { | |
window.claimInterval = setInterval(function () { |
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
// ==UserScript== | |
// @name Unnamed Script 640112 | |
// @version 1 | |
// @grant none | |
// @include http://sunbtc.space/ | |
// @require http://code.jquery.com/jquery-2.2.4.min.js | |
// ==/UserScript== | |
$(document).ready(function () { | |
window.claimInterval = setInterval(function () { |
OlderNewer