Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Maxim Tacu maxtacu

🏠
Working from home
View GitHub Profile
@maxtacu
maxtacu / eks-kubeconfig.go
Last active May 29, 2020
Update your kubeconfig with all EKS clusters
View eks-kubeconfig.go
package main
import (
"encoding/json"
"fmt"
"log"
"os/exec"
)
type EKSClusters struct {
@maxtacu
maxtacu / discussioncleaner.py
Created Mar 22, 2020
Telegram webhook bot for cleaning forwarded channel messages in discussion group
View discussioncleaner.py
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 = keyfile.read().replace('\n', '')
secret = 'SECRET-URL-PATH' # for example: 2412qweh15sf14s234jeqwe
url = 'YOUR-URL/' + secret
View keybase.md

Keybase proof

I hereby claim:

  • I am tmxak on github.
  • I am maxtacu (https://keybase.io/maxtacu) on keybase.
  • I have a public key ASDdxH0QwYgyH6g-d4QhZdneR1qF_1nQC5cODUosWHFI-Qo

To claim this, I am signing this object:

View countertimer.py
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:
You can’t perform that action at this time.