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
server { | |
listen 80; | |
server_name localhost; | |
root /var/www; | |
index index.html index.htm index.php; | |
rewrite ^/*$ /a/ redirect; | |
set $service ""; |
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
# Test kodlarını üret. | |
# Kullanım: | |
# make # üret | |
# make clean # temizle | |
PROGS := $(patsubst %.c,%,$(wildcard *.c)) | |
# pthread kitaplığını ekle. | |
CFLAGS += -Wall -lpthread |
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
[mysqld] | |
# ---------------------------------------------------------------------- | |
# UTF-8 temiz bir mysql için ilgili yapılandırma | |
# ---------------------------------------------------------------------- | |
init_connect=’SET collation_connection = utf8_general_ci’ | |
init_connect=’SET NAMES utf8′ | |
default-character-set=utf8 | |
character-set-server=utf8 |
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
#!/bin/sh | |
# hook : inoticoming --logfile t.log --pid-file t.pid /tmp/t --suffix .txt --stderr-to-log /tmp/t.sh {} \; | |
file=/tmp/t/$@ | |
mb=$(cat $file | wc -c); | |
min_size=5 | |
if [ -e $file ];then | |
echo >&2 "$@ dosyası daha önceden vardı, birşey yapmadım" |
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
#!/usr/bin/ruby | |
require 'csv' | |
##[global]############################################################# | |
$kisiler = {} #db.csv'den okunan bilgilerin tutuldugu sozluk | |
$csvname = "db.csv" #okunacak db'nin adı. | |
$kafa = [] #csv dosyasının ilk satırı.(örn : ["ad", "soyad", "no"]) | |
$key = "no" #herhangi bir csv de key olarak seçeceginiz ifade. | |
$value = [] #$kafa'nın keysiz hali.(örn : ["ad", "soyad"]) | |
####################################################################### | |
# |
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 | |
// Yerleştirme planımız. | |
function plan() { | |
return array( | |
'mühendislik' => array( | |
'salonlar' => array( | |
'a101' => array( | |
'kapasite' => 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
<?php | |
// Yerleştirme planımız. | |
function plan() { | |
return array( | |
'mühendislik' => array( | |
'salonlar' => array( | |
'a101' => array( | |
'kapasite' => 1, | |
), |