Skip to content

Instantly share code, notes, and snippets.

View carmebar's full-sized avatar
🖥️

Carlos Melero carmebar

🖥️
  • Valencia, Spain
View GitHub Profile
@carmebar
carmebar / TelegramForwarder.py
Created June 6, 2018 07:03
Uses Telethon to create a Telegram Client and forward messages silently from any entities (Channels, Groups or Users) to any other entities.
from telethon import TelegramClient, events
#/////
# Get list of ids from the "Dialogos" list printed after logging
entity_ids = []
to_ids = []
# Register an APP in https://my.telegram.org/
api_id = 0
api_hash = ""
@carmebar
carmebar / github_multiple_delete.py
Created July 31, 2017 13:22
Delete multiple GitHub repositories or forks interactively, using a list or matching a regular expresion
#!/bin/env python
from __future__ import print_function
import requests
import re
# <edit>
# Generate token here: https://github.com/settings/tokens
# Requires scope 'delete_repo'
### Keybase proof
I hereby claim:
* I am carmebar on github.
* I am carmebar (https://keybase.io/carmebar) on keybase.
* I have a public key ASCBh4l7XfyjKPgeJnyiULCgTZVuGmeTdMocC5K1j0HGFgo
To claim this, I am signing this object: