Murat Uğur Eminoğlu
Linux Python

Raspberry Pi ile tek kanal role kontrolu

19 November 2016 0 Comments

Merhaba, raspberry pi ile tek kanal role kontrolu icin asagidaki kodu kullanabilirsiniz. Kodu durdurana kadar role aktiftir. import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) ROL = 14 GPIO.setup(ROL, GPIO.OUT) try: while…

Continue reading
Linux Python

python ile wunderground.com uzerinden hava durumu bilgisi cekmek

16 November 2016 1 Comment

Merhaba, bu acemice scripttewunderground.com sitesindeki api’den yararlanacagiz. Sitesinden uye olup api key alabilir ve kendize gore asagidaki kodu uyarlayabilirsiniz. Sevgiyle. from urllib.request import urlopen import json f = urlopen(‘http://api.wunderground.com/api/052c55fadf25fe5d/forecast/lang:TR/q/Turkey/Ankara.json’) json1…

Continue reading
Linux Python

Python ile accuweather.com uzerinden hava durumu bilgisi cekmek

16 November 2016 0 Comments

Merhaba, bu acemice scriptte Ankara’nin merkezi yani Bakanliklar-Kizilay tarafinin hava durumu bilgisini cekecegiz. Ilk once pip3 install feedparser # komutu ile modulu yukleyelim. import feedparser # locCode=EUR|TR|06420|ANKARA| > KITA|ULKE|POSTAKODU|IL def…

Continue reading
Linux Python

python ile rasgele sifreler uretmek – 3

15 November 2016 0 Comments

Kullanimi : python3 password3.py 10 22   #10 adet 22 karakterden olusan sifre uretir. import string, sys, random def rasgele (adet, ras): for i in range(adet): karakterler = string.hexdigits + string.punctuation…

Continue reading
Linux Python

python ile rasgele sifre uretmek – 2

15 November 2016 0 Comments

Merhaba, daha kisa ve oz hali asagidaki gibi. import random import string def rasgele (kac): karakterler = string.ascii_letters + string.punctuation + string.digits rand = (random.sample(karakterler, kac)) print(*rand, sep=””) rasgele(20)

Continue reading
Linux Python

Python ile rasgele sifre uretmek

15 November 2016 0 Comments

Merhaba, Python ‘u daha yeni ogrenmeye basladim ve ufak programciklar olusturdukca buraya ekleyecegim. Sevgiyle. import random def rasgele (kac): alfabe = “abcdefghijklmnoprstuvyzwx” alfabe = (alfabe.upper() + alfabe.lower()) sayi = “0123456789”…

Continue reading
Page 1 of 1

Categories

  • Apache
  • Cisco
  • Fotoğraf
  • Genel
  • Gnome
  • Juniper
  • Kabuk
  • Kategorilenmemiş
  • Konsol
  • Linux
  • Mysql
  • Oylesine
  • Php
  • Postfix
  • Proftpd
  • Python
  • Sed
  • Squid
  • Ssh
  • Vi – Vim

Tags

alar ledini kapatmak alarm ledi Apache apt-get Brute Force debian debian 8 delete session find firewallturkiye.com Flood gimp git Mysql mysql slow query log nginx openldap ldap openssl openvpn owncloud Php phpsuhosin postfix postgresql python random password rasgele sifre uretmek raw reverse proxy samba session reset Spam ssg140 ssh ssl statik ip thunderbird3 turkcell vinn ubuntu ubuntu9.10 update varnish wvdial zcat zgrep

Murat Uğur Eminoğlu

#!/bin/bash echo "Murat Uğur Eminoğlu"
Back to top