Skip to content

Instantly share code, notes, and snippets.

@yasinkuyu
yasinkuyu / vesta_email_script.php
Last active December 28, 2021 06:17
Create email account vesta script
<?php
// Server info
$vst_hostname = 'server.vestacp.com';
$vst_username = 'admin';
$vst_password = 'p4ssw0rd';
$vst_returncode = 'yes';
$vst_command = 'v-add-mail-account';
// New account info
@yasinkuyu
yasinkuyu / turkish_lastnames.txt
Created September 19, 2016 22:04
Turkish Lastnames
// Türkçe soysimler/soyadlar
Abakıymış
Abala
Abçar
Abıç
Abık
Abıkan
Abınak
Abınç
@yasinkuyu
yasinkuyu / turkish_professions.txt
Last active June 16, 2021 07:30
Turkish Professions
// Türkçe meslek listesi
Acentacı
Acil durum yönetmeni
Adli tabip
Agronomist
Ağ yöneticisi
Aşçı
Aşçıbaşı
Ahşap tekne yapımcısı
@yasinkuyu
yasinkuyu / lol.txt
Last active September 19, 2016 22:04
: to line end regex
:[^\n]+
xxxx : bla bla bla
@yasinkuyu
yasinkuyu / turkish_girl_names.txt
Last active December 15, 2023 12:14
Turkish Names (Woman/Girl)
// Türkçe kız/kadın/bayan isimleri
Abendam
Açela
Açelya
Açılay
Adel
Adelya
Adile
Afitap
@yasinkuyu
yasinkuyu / turkish_male_names.txt
Last active December 15, 2023 11:58
Turkish Names (Male)
// Türkçe erkek isimleri
Abidin
Adnan
Affan
Agah
Ahi
Ahmed
Alican
Alişan
@yasinkuyu
yasinkuyu / aa.xml
Created July 3, 2016 22:01
AnadoluAjansı xml
<?xml version="1.0" encoding="utf-8"?>
<newsMessage xml:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1" xml:noNamespaceSchemaLocation="http://iptc.org/std/nar/2006-10-01/XSD/NewsML-G2_2.9-spec-All-Core.xsd" standard="NewsML-G2" standardversion="2.9" conformance="core" xml:lang="tr_TR" xmlns="http://iptc.org/std/nar/2006-10-01/">
<catalogRef href="http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_19.xml" />
<header>
<sent>2016-07-03T22:53:47Z</sent>
<sender>aa.com.tr</sender>
<priority>4</priority>
<channel qcode="AApackage:1">
<name xml:lang="fr">Général</name>
<name xml:lang="sq">E Përgjithshme</name>
@yasinkuyu
yasinkuyu / daterangepicker.tr.js
Created June 30, 2016 21:19
Daterangepicker Turkish
//daterangepicker.js
$(function() {
function cb(start, end) {
$('#reportrange span').html(start.format('MMMM D') + ' - ' + end.format('MMMM D'));
}
cb(moment().subtract(29, 'days'), moment());
$('#reportrange').daterangepicker({
@yasinkuyu
yasinkuyu / turkish_ordinal.js
Last active August 29, 2018 13:31
Türkçe sıra sayıları / Ordinal Numbers
// Türkçe sıra sayıları / Ordinal Numbers
for (var i = 1; i < 32; i++) {
if (i == 2) { var suffix = "nci"; }
else if (i == 3 || i == 4 || i == 13 || i == 14 || i == 23 || i == 24) { var suffix = "üncü"; }
else if (i == 6 ) { var suffix = "ncı"; }
else if (i == 9 || i == 10 || i == 19 || i == 29 || i == 39) { var suffix = "uncu"; }
else { var suffix = "inci"; }
console.log( i + '\'' + suffix);
@yasinkuyu
yasinkuyu / turkish-letter-frequency.js
Created January 12, 2016 15:12
Turkish letter frequency
// @yasinkuyu
// https://tr.wikipedia.org/wiki/T%C3%BCrk_alfabesindeki_harflerin_kullan%C4%B1m_s%C4%B1kl%C4%B1klar%C4%B1
// Türk alfabesindeki harflerin kullanım sıklıkları
var alfabe = {
'A': 11.92,
'B': 2.844,
'C': 0.963,
'Ç': 1.156,
'D': 4.706,
'E': 8.912,