Skip to content

Instantly share code, notes, and snippets.

View kocogluali's full-sized avatar

Ali Kemal Koçoğlu kocogluali

View GitHub Profile
@kocogluali
kocogluali / Debian Python ile Driver Yedekleme
Last active January 4, 2016 11:49
Debian Python ile Driver Yedekleme
#super user olmadan çalışmaz ona göre :)
import os, zipfile
ZF=zipfile.ZipFile("modules.zip","w")
A=os.popen("lsmod").read()
M=A.split("\n")
for l in M[1:]:
ls=l.strip()
@kocogluali
kocogluali / mukemmel.py
Last active August 29, 2015 13:59
Python Mükemmel Sayı
#-*-coding:utf-8-*-
girilenSayi=input('Sayi Giriniz')
sonuc=0
girilenSayi=int(girilenSayi)
l=[]
for i in range(1,girilenSayi):
if girilenSayi%i==0:
l.append(i)
for m in l:
@kocogluali
kocogluali / radyo.py
Created November 4, 2014 10:51
python-radio
#-*-coding:utf*8-*-
#!/usr/bin/python
import os
sozluk={'ask':'http://88.150.190.187:8020',
'avrasya':'http://88.150.190.188:1071',
'arabesk':'http://198.27.101.176:7446',
'imbat':'http://38.96.148.18:8127',
'sky':'http://198.27.101.189:8300'}
#Ali Kemal Kocoglu
#-*-coding : utf-8 -*-
from math import sqrt
import random,os
yas=input("Varsayılan Yaş Değerini Giriniz:")
yas=int(yas)
kredi=input("Varsayılan Kredi Değerini Giriniz :")
kredi=float(kredi)
@kocogluali
kocogluali / Remote Revel app access config
Created February 3, 2017 18:41 — forked from tim-peterson/Remote Revel app access config
Config to access Go Revel app remotely, i.e., by IP address or domain name (NOT localhost, or NOT 127.0.0.1)
## nginx.conf ##
server {
listen 80;
# listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
@kocogluali
kocogluali / Vagrantfile
Created February 21, 2018 19:40 — forked from gokhansengun/Vagrantfile
Vagrantfile used in Istanbul Coders - Kubernetes Introduction Meetup
# -*- mode: ruby -*-
# vi: set ft=ruby :
K8S_DEV_BOX_NAME = "gsengun/k8s-dev-box"
K8S_DEV_BOX_VERSION = "17.12.27"
MASTER_NODE_IP_START="172.27.44.20"
WORKER_NODE_IP_START="172.27.44.10"
JOIN_TOKEN="abcdef.1234567890123456"