Skip to content

Instantly share code, notes, and snippets.

@roktas
roktas / sources.list
Created August 25, 2010 23:22 — forked from seyyah/sources.list
foo bar
# bu ornek serdaraytekin den alintilanmistir
# kaynak: http://www.serdaraytekin.com/docs/os/debian/sarge-install-6.html
# 9/7/10: turkiye yansilari guncellendi.
deb http://ftp.metu.edu.tr/debian testing main contrib non-free
deb-src http://ftp.metu.edu.tr/debian testing main contrib non-free
deb http://ftp.tr.debian.org/debian-security testing/updates main contrib non-free
# deb http://debian.comu.edu.tr/debian testing main contrib non-free
@roktas
roktas / t.py
Created September 10, 2010 20:43
#!/usr/bin/python
#-*-coding:utf-8-*-
# Code stolen and modified from Emre Sevinç:
# http://github.com/emres/turkish-deasciifier
def set_char_at(string, pos, c):
return string[0:pos] + c + string[pos+1:]
def turkish_accent(c):
# kanonik kök dizin
root /srv/www/$host/site;
# öntanımlı indeksler
index index.html index.htm index.php;
# flv dosyalarında flv modülü etkin
location ~ \.flv$ {
flv;
}
# yoğun yük altında yapılan ayarlar
client_max_body_size 32m;
client_body_buffer_size 8192k;
client_body_timeout 120;
client_header_timeout 120;
send_timeout 120;
keepalive_timeout 120;
# dersler dizinini dış erişimden korumak için alınan yetersiz önlem
location ~ /dersler/ {
@roktas
roktas / my.cnf
Created September 12, 2010 05:31
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#!/bin/sh
PROGNAME=${0##*/}
# Veritabanından bir tabloyu CSV olarak ithal et.
whisper() {
local name description value
name="$1"
<?php
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_flush_all_caches();
?>
at
automysqlbackup
bash-completion
bmon
bsd-mailx
console-setup
console-terminus
dnstracer
dnsutils
etckeeper
@roktas
roktas / virepo
Created September 19, 2010 01:28
git aware vidir
#!/usr/bin/perl
=head1 NAME
vidir - edit directory
=head1 SYNOPSIS
B<vidir> [--verbose] [directory|file|-] ...
cd /tmp
sudo apt-get install xclip
wget http://github.com/dblevins/gistpaste/raw/master/gistpaste
chmod 755 gistpaste
sudo mv gistpaste /usr/local/bin/
git clone git://gist.github.com/618030.git
cd 618030
/usr/lib/gnome-panel/gnome-panel-add --panel=top_panel_screen0 --copy-launcher --launcher=gistpaste.desktop
# üst panelde artık bir ikon olmalı
# şimdi... herhangi bir metni seç ve o ikona tıkla