Skip to content

Instantly share code, notes, and snippets.

View tunix's full-sized avatar

Alper Kanat tunix

View GitHub Profile
@tunix
tunix / domains
Created August 27, 2012 07:59 — forked from ahmetb/domains
List of gov.tr domain names I discovered (bulabildigim kadariyla bir gov.tr alan adlari listesi)
3158 GOV.TR domain names
http://ahmetalpbalkan.com/blog/gov-tr-alan-adlari-listesi/
==================================
100yilyy.gov.tr
19mayis.gov.tr
28kontrollab.gov.tr
360sakarya.gov.tr
80yilrehabilitasyon.gov.tr
9fi.gov.tr
@tunix
tunix / bin.json
Created September 6, 2012 17:07
Current BIN List
{
"413226": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": "PLATINUM", "isVirtual": false, "isPrepaid": false},
"444676": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": "CLASSIC", "isVirtual": false, "isPrepaid": false},
"444677": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": "GOLD", "isVirtual": false, "isPrepaid": false},
"444678": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": "PLATINUM", "isVirtual": false, "isPrepaid": false},
"453955": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": " CLASSIC", "isVirtual": false, "isPrepaid": false},
"453956": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA", "cardSubtype": " GOLD", "isVirtual": false, "isPrepaid": false},
"454671": {"bankId": 10, "bankName": "T.C. ZİRAAT BANKASI A.Ş.", "cardType": "VISA",
@tunix
tunix / gist:4346710
Created December 20, 2012 16:59
Türkiye Telefon Kodları
<select name="" id="">
<option value="212">212</option>
<option value="216">216</option>
<option value="222">222</option>
<option value="224">224</option>
<option value="226">226</option>
<option value="228">228</option>
<option value="232">232</option>
<option value="236">236</option>
<option value="242">242</option>
@tunix
tunix / gist:4977890
Created February 18, 2013 14:40
bash relative date time
$ date -d "9pm last saturday" +'%F %T'
@tunix
tunix / ulkeler
Created September 11, 2013 16:11 — forked from burakerdem/ulkeler
ABBR CODE COUNTRY
-----------------------
US 1 ABD
VI 1 ABD Virjin Adaları
AF 93 Afganistan
AX 358 Åland Adaları
DE 49 Almanya
AS 1 Amerikan Samoası
AD 376 Andorra
AO 244 Angola
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@tunix
tunix / access.py
Created October 7, 2013 11:26
Apache log parser for IP count, path and user agent
# coding: utf-8
import os
import re
import sys
pattern = '(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}) - - \[.*\] "GET ([^\s]+) HTTP\/1.0" \d+ \d+ ".*" "(.*)"'
ip_list = {}
for p in sys.argv:
<?php
$row = 0;
$head = array();
$result = array();
$columnCount = 0;
$input = @$argv[1];
$output = @$argv[2];
AES aes = new AES(256/32);
String clave = "12345678677561";
clave = aes.parseKey(clave);
String texto = String.valueOf(0.0) + String.valueOf(677) + "Tr" + String.valueOf(0.0) +
String.valueOf(561);
String hash = aes.encrypt(texto, clave, 256);
System.out.println("Hash :" + hash);
#!/bin/bash
# Digital Ocean API Token
TOKEN=""
# Domain Details
DOMAIN=""
RECORD_ID=""
IP=$(curl -s ifconfig.me)