Skip to content

Instantly share code, notes, and snippets.

View tunix's full-sized avatar

Alper Kanat tunix

View GitHub Profile
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)
@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 / 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:
@tunix
tunix / Dockerfile
Last active October 11, 2016 13:38
Gerrit Dashboard Server Dockerfile
FROM node:4.4
LABEL type="node" purpose="api" role="core" description="Gerrit Dashboard Server"
ENV NODE_ENV production
ENV SOURCE_TYPE DB
ENV GERRIT_DASHBOARD_CONFIG_PATH /opt/config
COPY dist /srv/app
WORKDIR /srv/app
EXPOSE 3000
VOLUME ["/opt/config"]
CMD ["./bin/www"]
@tunix
tunix / Dockerfile
Last active October 11, 2016 13:38
alperkan.at Dockerfile
FROM node:6.2-slim
MAINTAINER Alper Kanat <me@alperkan.at>
ADD . /srv
WORKDIR /srv
RUN apt-get update && apt-get install -qqy git
RUN npm install -g bower gulp
RUN npm install
RUN bower install --allow-root
RUN gulp clean build
ENV NODE_ENV production