Skip to content

Instantly share code, notes, and snippets.

Working from home

Maxim Tacu maxtacu

Working from home
View GitHub Profile
maxtacu / eks-kubeconfig.go
Last active May 29, 2020
Update your kubeconfig with all EKS clusters
View eks-kubeconfig.go
package main
import (
type EKSClusters struct {
maxtacu /
Created Mar 22, 2020
Telegram webhook bot for cleaning forwarded channel messages in discussion group
import telebot, os
from flask import Flask, request
__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
keyfile = open(os.path.join(__location__, 'apiKey.txt'), "r")
token ='\n', '')
secret = 'SECRET-URL-PATH' # for example: 2412qweh15sf14s234jeqwe
url = 'YOUR-URL/' + secret

Keybase proof

I hereby claim:

  • I am tmxak on github.
  • I am maxtacu ( on keybase.
  • I have a public key ASDdxH0QwYgyH6g-d4QhZdneR1qF_1nQC5cODUosWHFI-Qo

To claim this, I am signing this object:

import time
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--time', type=int, required=True, help="Time in seconds")
parser.add_argument('-o', '--output',default="counter.txt", help="Output file")
args = parser.parse_args()
def countdown(t):
while t: