Skip to content

Instantly share code, notes, and snippets.

View kazimolmez's full-sized avatar

Kazım Ölmez kazimolmez

View GitHub Profile
@kazimolmez
kazimolmez / devise.tr.yml
Created May 4, 2017 13:24 — forked from cihad/devise.tr.yml
Turkish translations for Devise
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
tr:
devise:
confirmations:
confirmed: "Eposta adresiniz başırılı bir şekilde onaylandı."
send_instructions: "Bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız."
send_paranoid_instructions: "Eğer eposta adresinizi veritabanımızda kayıtlı ise bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız."
failure:
already_authenticated: "Zaten giriş yaptınız."
@kazimolmez
kazimolmez / TR Banka Bin List
Created October 20, 2017 14:21 — forked from serkanince/TR Banka Bin List
TR Banka Bin Listesi
SET NAMES utf8;
DROP TABLE IF EXISTS `cc_bins`;
CREATE TABLE `cc_bins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`bank_code` int(11) NOT NULL,
`bank_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bin_number` int(11) NOT NULL,
`card_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
@kazimolmez
kazimolmez / test.py
Created December 7, 2017 22:44 — forked from christianroman/test.py
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
import cv2.cv as cv
import tesseract
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY)
api = tesseract.TessBaseAPI()
api.Init(".","eng",tesseract.OEM_DEFAULT)
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz")
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
tesseract.SetCvImage(gray,api)
print api.GetUTF8Text()
<html>
<head>
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<div id="map" style="height: 400px; width: 500px;">
</div>
<script type="text/javascript">
@kazimolmez
kazimolmez / $_SERVER.php
Created January 20, 2018 02:00 — forked from georgioupanayiotis/$_SERVER.php
Get visitor IP address in PHP
function get_visitor_ip() {
$ip = '';
if ($_SERVER['HTTP_CLIENT_IP'])
$ip = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['HTTP_X_FORWARDED_FOR'])
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_X_FORWARDED'])
$ip = $_SERVER['HTTP_X_FORWARDED'];
else if($_SERVER['HTTP_FORWARDED_FOR'])
$ip = $_SERVER['HTTP_FORWARDED_FOR'];
@kazimolmez
kazimolmez / bootstrap-navbar-css-reset.css
Created January 22, 2018 11:58 — forked from justincarroll/bootstrap-navbar-css-reset.css
This is a CSS reset for the Bootstrap Navbar component. In the future I'd like to see them deploy an .unstyled class. Until then this'll do.
.navbar-inner,
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner,
.navbar-static-top .navbar-inner {
background: none;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
@kazimolmez
kazimolmez / PHP TC Kimlik Numarası Doğrulama
Created February 14, 2018 08:39 — forked from saltun/gist:439794ab032b7a894d91
PHP TC Kimlik Numarası Doğrulama
<meta charset="utf-8">
<?php
function tcno_dogrula($bilgiler){
$gonder = '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TCKimlikNoDogrula xmlns="http://tckimlik.nvi.gov.tr/WS">
<TCKimlikNo>'.$bilgiler["tcno"].'</TCKimlikNo>
<Ad>'.$bilgiler["isim"].'</Ad>
@kazimolmez
kazimolmez / ie67891011-css-hacks.txt
Created February 20, 2018 17:42 — forked from vidaaudrey/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@kazimolmez
kazimolmez / ie67891011-css-hacks.txt
Created February 20, 2018 17:42 — forked from ricardozea/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@kazimolmez
kazimolmez / hide-email-address-from-spambots.html
Created February 20, 2018 17:43 — forked from ricardozea/hide-email-address-from-spambots.html
Display email address link with CSS to avoid email harvesting.
<a data-name="info" data-domain="test" data-tld="com" href="#" class="cryptedmail" onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld"></a>
<style>
.cryptedmail:after {
content: attr(data-name) "@" attr(data-domain) "." attr(data-tld);
}
</style>
<!--
Taken from this answer in SO: http://stackoverflow.com/a/41566570/321555