Skip to content

Instantly share code, notes, and snippets.

View atakanyenel's full-sized avatar

Atakan Yenel atakanyenel

View GitHub Profile
package main
// env GOOS=linux go build
import (
"log"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
)
func main() {
apiVersion: v1
kind: ServiceAccount
metadata:
name: kyma-serviceaccount
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: cluster-admin-binding
subjects:
@atakanyenel
atakanyenel / egitme.py
Last active March 9, 2019 18:05 — forked from ageitgey/train.py
# -*- coding: utf-8 -*-
"""
Buradaki tflearn örneğinden uyarlanmıştır:
https://github.com/tflearn/tflearn/blob/master/examples/images/convnet_cifar10.py
"""
from __future__ import division, print_function, absolute_import
# tflearn ve bir kaç yardımcı kütüphaneyi ekle
import tflearn
@atakanyenel
atakanyenel / emailclient.py
Last active July 15, 2016 14:23
This code runs at start-up to show unread e-mail numbers of two e-mail accounts on a linux mint notification api.
#!/usr/bin/python
import imaplib
import password
M=imaplib.IMAP4_SSL("imap.gmail.com","993")
M.login("firstaccount@gmail.edu",password.first())
M.select()
M.search(None,"UnSeen")
rv, data=M.search(None,"UnSeen")
n=0
for num in data[0].split():