Skip to content

Instantly share code, notes, and snippets.

View egegunes's full-sized avatar

Ege Güneş egegunes

View GitHub Profile
from os import uname
from xmlrpc.client import ServerProxy
class Server:
RUNNING = 20
TEMPLATE = "supervisor,host={},process={} up={}"
def __init__(self, addr):
self.server = ServerProxy(addr)
#!/bin/bash
set -e
rename() {
SEASON=$1
LANG=$2
i=1
for FILE in *.*; do
#!/bin/bash
FILE=$1
while IFS= read -r IP
do
HOST=$(host $IP)
printf "%s %s\n" "$IP" "$HOST"
done < "$FILE"
import zeep
client = zeep.Client('https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?wsdl')
response = client.service.TCKimlikNoDogrula(TC_KIMLIK, AD, SOYAD, DOGUM_YILI)
print(response)
@egegunes
egegunes / chatbot.py
Created October 10, 2017 11:12
Chatbot prototype for Facebook Messenger
import json
import logging
import requests
from flask import Flask, request
logger = logging.getLogger(__name__)
app = Flask(__name__)
VERIFY_TOKEN = 'VERIFY_TOKEN'
ACCESS_TOKEN = 'ACCESS_TOKEN'

Keybase proof

I hereby claim:

  • I am egegunes on github.
  • I am egegunes (https://keybase.io/egegunes) on keybase.
  • I have a public key ASC_CUrpWXBsTdyiBuyA1Q7aJmd9y_EHMcUb2-CXO1JqJwo

To claim this, I am signing this object:

#!/bin/bash
rename () {
SEASON=$1
LANG=$2
i=1
for FILE in *.*; do